Skip to content

Commit

Permalink
Clean up march test failure messages
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyparrish committed Oct 13, 2024
1 parent 0c7fa00 commit 7685c71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions software/hardware-test/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ char march_error_2[256];
#define SRAM_MARCH_TEST_START(bank) \
volatile uint8_t* sram = bank ? KINETOSCOPE_SRAM_BANK_1 : KINETOSCOPE_SRAM_BANK_0
#define SRAM_MARCH_TEST_DATA(offset, data) { \
if (sram[offset] != data) { \
uint8_t real = sram[offset]; \
if (real != data) { \
sprintf(march_error_1, "Fail at offset %d ", (int)offset); \
sprintf(march_error_2, "real 0x%02x != expected 0x%02x", \
(int)(sram[offset]), (int)data); \
sprintf(march_error_2, "Expected 0x%02x, got 0x%02x", \
(int)data, (int)real); \
return false; \
} \
}
Expand Down

0 comments on commit 7685c71

Please sign in to comment.