Fix comparison value
authorJean THOMAS <git0@pub.jeanthomas.me>
Thu, 11 Jun 2020 11:10:27 +0000 (13:10 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Thu, 11 Jun 2020 11:10:27 +0000 (13:10 +0200)
examples/firmware/main.c

index 4ede1957f60364f53e09ed8da28a28cc5b0902ed..98ecff1a9714e903cac2632fd5ff280594de867b 100644 (file)
@@ -78,11 +78,11 @@ int main(void) {
                uart_writestr("Writing to 0x");
                uart_writeuint32(&ram[i]);
                uart_write('\n');
-               ram[i] = 0xaaaaaaaa;
+               ram[i] = 0xDEADBEEF;
        }
 
        for (size_t i = 0; i < 1000; i++) {
-               if (ram[i] != 0xdeadbeef) {
+               if (ram[i] != 0xDEADBEEF) {
                        uart_writestr("fail : *(0x");
                        uart_writeuint32(&ram[i]);
                        uart_writestr(") = ");