Skip to content

Commit 512eaf8

Browse files
committed
Fix compiler warning in ternary operator in event mode detection
1 parent 193d1ac commit 512eaf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Flight1v2/Flight1v2.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ void configCB(BLEDevice unused1, BLECharacteristic unused2)
477477
break;
478478
case 'p':
479479
data ? AccGyr.Enable_Pedometer() : AccGyr.Disable_Pedometer();
480-
data ? AccGyr.Step_Counter_Reset() : false;
480+
data ? AccGyr.Step_Counter_Reset() : 0;
481481
break;
482482
case 'w':
483483
data ? AccGyr.Enable_Wake_Up_Detection(LSM6DSO_INT2_PIN) : AccGyr.Disable_Wake_Up_Detection();

0 commit comments

Comments
 (0)