summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-25 10:05:30 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-25 10:05:30 +0100
commitcc9f3a8dfd08404657465f305c6f10ca846197d9 (patch)
tree03f09b4bc77d7a6ac10e5a573ce38a146bcf8f75
parent1544e0730dd9066d28638dd60df3c5fc362b6c72 (diff)
Revert "revert freepie apk change for now"
This reverts commit ee86e9367d960a7993409e4fc2f4cef1309d109b. New .apk version released by FreePIE
-rw-r--r--ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
index a0f3cf88..e92c9eec 100644
--- a/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
+++ b/ftnoir_tracker_freepie-udp/ftnoir_tracker_freepie-udp.cpp
@@ -28,7 +28,6 @@ void TrackerImpl::run() {
#pragma pack(push, 1)
struct {
uint8_t pad1;
- uint8_t pad2;
uint8_t flags;
float fl[12];
} data;
@@ -51,7 +50,7 @@ void TrackerImpl::run() {
while (sock.hasPendingDatagrams())
{
using t = decltype(data);
- t tmp {0,0,0, {0,0,0, 0,0,0}};
+ t tmp {0,0, {0,0,0, 0,0,0, 0,0,0, 0,0,0}};
(void) sock.readDatagram(reinterpret_cast<char*>(&tmp), sizeof(data));
int flags = tmp.flags & F::Mask;