Skip to content

Commit a14dc2d

Browse files
committed
Do not reuse last log if reset reason was a software restart
1 parent c912242 commit a14dc2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firmware/RTK_Surveyor/Begin.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void beginBoard()
239239

240240
//For all boards, check reset reason. If reset was due to wdt or panic, append last log
241241
loadSettingsPartial(); //Loads settings from LFS
242-
if (esp_reset_reason() == ESP_RST_POWERON)
242+
if ((esp_reset_reason() == ESP_RST_POWERON) || (esp_reset_reason() == ESP_RST_SW))
243243
{
244244
reuseLastLog = false; //Start new log
245245

0 commit comments

Comments
 (0)