diff options
author | Joshua Allen <axlecrusher@gmail.com> | 2017-02-10 18:12:32 -0500 |
---|---|---|
committer | Joshua Allen <axlecrusher@gmail.com> | 2017-02-10 18:12:32 -0500 |
commit | a4b9d6de0673f16c82b295ffc4778f6361e81fe8 (patch) | |
tree | eb14534593e5db1bc5a5fc3b6c07d068bb90f653 /tools/ootx_decode/ootx_decode.c | |
parent | 9ac3cddf749366f81540aac549ac7583602b7170 (diff) | |
download | libsurvive-a4b9d6de0673f16c82b295ffc4778f6361e81fe8.tar.gz libsurvive-a4b9d6de0673f16c82b295ffc4778f6361e81fe8.tar.bz2 |
use decoding contexts to separate simultaneous lighthouse ootx decoding.
Diffstat (limited to 'tools/ootx_decode/ootx_decode.c')
-rw-r--r-- | tools/ootx_decode/ootx_decode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/ootx_decode/ootx_decode.c b/tools/ootx_decode/ootx_decode.c index 803b39e..030b31b 100644 --- a/tools/ootx_decode/ootx_decode.c +++ b/tools/ootx_decode/ootx_decode.c @@ -22,7 +22,9 @@ void my_test(ootx_packet* packet) { int main(int argc, char* argv[]) { - ootx_init_buffer(); + ootx_decoder_context ctx; + ootx_init_decoder_context(&ctx); +// ootx_init_buffer(); ootx_packet_clbk = my_test; char* line = NULL; @@ -43,7 +45,7 @@ int main(int argc, char* argv[]) &ticks); // printf("%d\n", ticks); - ootx_process_bit(ticks); + ootx_process_bit(&ctx, ticks); } return 0; |