aboutsummaryrefslogtreecommitdiff
path: root/tools/ootx_decode/HMD_Datagen.c
diff options
context:
space:
mode:
authorJosh Allen <axlecrusher@gmail.com>2017-02-10 06:54:58 -0500
committerJosh Allen <axlecrusher@gmail.com>2017-02-10 06:54:58 -0500
commit9ac3cddf749366f81540aac549ac7583602b7170 (patch)
tree606fa3d8c650bbbb23133cbe91a238bbc28b62ae /tools/ootx_decode/HMD_Datagen.c
parent917a7f7754e47567bf9102b6c26b6649ae6b28dd (diff)
downloadlibsurvive-9ac3cddf749366f81540aac549ac7583602b7170.tar.gz
libsurvive-9ac3cddf749366f81540aac549ac7583602b7170.tar.bz2
crc check decoded data
Diffstat (limited to 'tools/ootx_decode/HMD_Datagen.c')
-rw-r--r--tools/ootx_decode/HMD_Datagen.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/ootx_decode/HMD_Datagen.c b/tools/ootx_decode/HMD_Datagen.c
index d71d291..f2e8b19 100644
--- a/tools/ootx_decode/HMD_Datagen.c
+++ b/tools/ootx_decode/HMD_Datagen.c
@@ -10,6 +10,8 @@
#include <time.h>
#include <stdlib.h>
+#include "crc32.h"
+
uint32_t time_stamp = -525198892;
char* fmt_str = "L Y HMD %d 5 1 206230 %d\n";
@@ -19,7 +21,7 @@ void print_preamble();
void print_uint16(uint16_t d);
void print_uint32(uint32_t d);
void print_payload(char* data, uint16_t length);
-uint32_t crc32(uint32_t crc, uint8_t *buf, size_t size);
+
int main(int argc, char* argv[])
{