We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8ff007e + 1b5cba0 commit e0a5143Copy full SHA for e0a5143
project/raspberrypi4b/src/main.c
@@ -65,7 +65,7 @@ void max30102_receive_callback(uint8_t type)
65
/* read data */
66
len = 32;
67
res = max30102_fifo_read((uint32_t *)gs_raw_red, (uint32_t *)gs_raw_ir, (uint8_t *)&len);
68
- if (res)
+ if (res != 0)
69
{
70
max30102_interface_debug_print("max30102: read failed.\n");
71
}
project/stm32f407/usr/src/main.c
@@ -96,7 +96,7 @@ void max30102_receive_callback(uint8_t type)
96
97
98
99
100
101
102
0 commit comments