aboutsummaryrefslogtreecommitdiff
path: root/tools/ootx_decode/ootx_decode.c
diff options
context:
space:
mode:
authorJosh Allen <axlecrusher@gmail.com>2017-02-14 21:04:20 -0500
committerJosh Allen <axlecrusher@gmail.com>2017-02-14 21:04:20 -0500
commit6dbd0f2062f5f519c9b6762874c2e940b0639cbd (patch)
treeb63acb35c625e9ba9b24b7daa24da6842923c614 /tools/ootx_decode/ootx_decode.c
parente1e7bfbad7016e29ca3cbb4de2f93d37462ca251 (diff)
downloadlibsurvive-6dbd0f2062f5f519c9b6762874c2e940b0639cbd.tar.gz
libsurvive-6dbd0f2062f5f519c9b6762874c2e940b0639cbd.tar.bz2
fix ootx_decode tool compile
Diffstat (limited to 'tools/ootx_decode/ootx_decode.c')
-rw-r--r--tools/ootx_decode/ootx_decode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/ootx_decode/ootx_decode.c b/tools/ootx_decode/ootx_decode.c
index 74d2dfe..1823aaa 100644
--- a/tools/ootx_decode/ootx_decode.c
+++ b/tools/ootx_decode/ootx_decode.c
@@ -12,12 +12,12 @@
#include "ootx_decoder.h"
-void my_test(ootx_packet* packet) {
+void my_test(ootx_decoder_context *ctx, ootx_packet* packet) {
packet->data[packet->length] = 0;
printf("%d %s 0x%X\n", packet->length, packet->data, packet->crc32);
}
-void my_test2(ootx_packet* packet) {
+void my_test2(ootx_decoder_context *ctx, ootx_packet* packet) {
printf("completed ootx packet\n");
lighthouse_info_v6 lhi;
@@ -41,7 +41,7 @@ void write_to_file(uint8_t *d, uint16_t length){
fclose(fp);
}
-void bad_crc(ootx_packet* packet, uint32_t crc) {
+void bad_crc(ootx_decoder_context *ctx, ootx_packet* packet, uint32_t crc) {
printf("CRC mismatch\n");
printf("r:");
@@ -118,4 +118,4 @@ int main(int argc, char* argv[])
ootx_free_decoder_context(ctx+1);
return 0;
-} \ No newline at end of file
+}