Skip to content

Commit f43e28b

Browse files
committed
Load partial settings after platform is dected
So that setSettingsFileName has correct info. Reversion of [this commit](718f07c#diff-b1c05b3c11dc036b5248d5537c2f451b6040a30a1ee28bfe8a970b2bc7af0007R119). We no longer need power button filtering setting so this is ok. Fix for issue #658.
1 parent 75f32ca commit f43e28b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Firmware/RTK_Surveyor/Begin.ino

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,6 @@ void beginBoard()
153153
}
154154
}
155155

156-
// We need some settings before we are completely powered on
157-
// ie, disablePowerFiltering, enableResetDisplay, resetCount, etc
158-
loadSettingsPartial(); // Loads settings from LFS
159-
160156
// Setup hardware pins
161157
if (productVariant == RTK_SURVEYOR)
162158
{
@@ -295,6 +291,7 @@ void beginBoard()
295291
ethernetMACAddress[5] += 3; // Convert MAC address to Ethernet MAC (add 3)
296292

297293
// For all boards, check reset reason. If reset was due to wdt or panic, append last log
294+
loadSettingsPartial(); // Loads settings from LFS
298295
if ((esp_reset_reason() == ESP_RST_POWERON) || (esp_reset_reason() == ESP_RST_SW))
299296
{
300297
reuseLastLog = false; // Start new log

0 commit comments

Comments
 (0)