Skip to content

Commit

Permalink
Make factoryReset() pause before returning
Browse files Browse the repository at this point in the history
Maybe the sensor needs a little time to re-initialize?
  • Loading branch information
MaffooClock committed Nov 10, 2023
1 parent 31737f7 commit cd8fa57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/DFR_Radar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,10 @@ bool DFR_Radar::factoryReset()
// return false;
stop();

return sendCommand( comFactoryReset );
bool success = sendCommand( comFactoryReset );
delay( 2000 );

return success;
}

bool DFR_Radar::configBegin()
Expand Down

0 comments on commit cd8fa57

Please sign in to comment.