Skip to content

Commit

Permalink
Update payload ID for bench test
Browse files Browse the repository at this point in the history
Was 0x7777 now 0x8888
Old number was invalid (odd).

Found in firmware from 0fc4cbc on.
  • Loading branch information
John Howe authored and johnhowe committed Oct 14, 2012
1 parent 543af39 commit 5beb5d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.c
Expand Up @@ -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
Expand All @@ -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");
Expand Down

0 comments on commit 5beb5d6

Please sign in to comment.