From 5beb5d6b41b49778245b2a04dd87d664b51966ab Mon Sep 17 00:00:00 2001 From: John Howe Date: Sun, 14 Oct 2012 14:42:41 +1300 Subject: [PATCH] Update payload ID for bench test Was 0x7777 now 0x8888 Old number was invalid (odd). Found in firmware from 0fc4cbc on. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 98202a4..2dd1c64 100644 --- a/main.c +++ b/main.c @@ -173,7 +173,7 @@ int stopLogging(void) * Packet content description: * * 0x00 flags - correct - * 0x7777 payload ID - correct + * 0x8888 payload ID - correct * 0x01 mode - correct * 0x0C events per cycle / base teeth = 12/0x0C for default, 36/0x24 for common * 0xFFFF cycles, max this out @@ -189,7 +189,7 @@ int stopLogging(void) int setupBenchTest(uint8_t eventsPerCycle, uint16_t ticksPerEvent) { const int missingToothOffset = 16; - static uint8_t setupBenchTestPacket[] = { 0x00, 0x77, 0x77, 0x01, 0x0C, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; + static uint8_t setupBenchTestPacket[] = { 0x00, 0x88, 0x88, 0x01, 0x0C, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; if (nMissingTeeth > 5 || nMissingTeeth < 0) { nMissingTeeth = 1; fprintf(stderr, "Using 1 missing tooth. \n");