summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-01 13:45:02 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-01 13:45:02 +0100
commit4c5c229403ef4afc7dfb4d825901574cf9cc93b3 (patch)
treec4e207bacff6da6520b64845ef6f6904c130c2fb /ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
parent906a2ac823b9746b5c84cd663377045994d9cc86 (diff)
revert freepie apk change for now
Diffstat (limited to 'ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp')
-rw-r--r--ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
index 89311bf0..295cb65b 100644
--- a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
+++ b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
@@ -28,6 +28,7 @@ void TrackerImpl::run() {
#pragma pack(push, 1)
struct {
uint8_t pad1;
+ uint8_t pad2;
uint8_t flags;
float fl[12];
} data;
@@ -50,7 +51,7 @@ void TrackerImpl::run() {
while (sock.hasPendingDatagrams())
{
using t = decltype(data);
- t tmp {0,0, {0,0,0, 0,0,0, 0,0,0, 0,0,0}};
+ t tmp {0,0,0, {0,0,0, 0,0,0}};
(void) sock.readDatagram(reinterpret_cast<char*>(&tmp), sizeof(data));
int flags = tmp.flags & F::Mask;