Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/OpenBikeSensorFirmware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ static void powerKeepAliveTimerISR()
}
}

// Soft power-off OBSPro when button is pressed for more than 2 seconds
// Soft power-off OBSPro when button is pressed for more than 10 seconds
if(button.read())
{
if(buttonPressedCounter < 255)
Expand All @@ -261,7 +261,7 @@ static void powerKeepAliveTimerISR()
else
buttonPressedCounter = 0;

if(shutdownState == 0 && buttonPressedCounter >= 50) {
if(shutdownState == 0 && buttonPressedCounter >= 100) {
shutdownState = 1;
}
switch(shutdownState)
Expand Down