Skip to content

Commit e0a5143

Browse files
authored
Merge pull request #2 from hepingood/dev
feat: change the main
2 parents 8ff007e + 1b5cba0 commit e0a5143

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

project/raspberrypi4b/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void max30102_receive_callback(uint8_t type)
6565
/* read data */
6666
len = 32;
6767
res = max30102_fifo_read((uint32_t *)gs_raw_red, (uint32_t *)gs_raw_ir, (uint8_t *)&len);
68-
if (res)
68+
if (res != 0)
6969
{
7070
max30102_interface_debug_print("max30102: read failed.\n");
7171
}

project/stm32f407/usr/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void max30102_receive_callback(uint8_t type)
9696
/* read data */
9797
len = 32;
9898
res = max30102_fifo_read((uint32_t *)gs_raw_red, (uint32_t *)gs_raw_ir, (uint8_t *)&len);
99-
if (res)
99+
if (res != 0)
100100
{
101101
max30102_interface_debug_print("max30102: read failed.\n");
102102
}

0 commit comments

Comments
 (0)