Skip to content

Commit

Permalink
Comment explaining 0.2.5 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brownby committed Sep 8, 2022
1 parent a1d0378 commit 8020054
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Komotion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ void Komotion::record(void){
digitalWrite(BNO08X_ONOFF, LOW); // turn on BNO
delay(200);

// 0.2.5: Adding this check here because sometimes record switch bouncing causes thid if statement to be entered early
// Not really a problem so long as the BNO is successfully re-initialized, which requires deleting the old pointer and closing the SH2 interface
if (_bno08x)
{
sh2_close();
Expand Down

0 comments on commit 8020054

Please sign in to comment.