Skip to content

Commit b1bb9e4

Browse files
committed
Display error if we hit hard stop.
1 parent 7dcc4b9 commit b1bb9e4

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Firmware/RTK_Surveyor/Begin.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ void beginBoard()
66
{
77
//Use ADC to check 50% resistor divider
88
int pin_adc_rtk_facet = 35;
9-
if (analogReadMilliVolts(pin_adc_rtk_facet) > (3300/2 * 0.9) && analogReadMilliVolts(pin_adc_rtk_facet) < (3300/2 * 1.1))
9+
if (analogReadMilliVolts(pin_adc_rtk_facet) > (3300 / 2 * 0.9) && analogReadMilliVolts(pin_adc_rtk_facet) < (3300 / 2 * 1.1))
1010
{
1111
productVariant = RTK_FACET;
1212
}
@@ -81,7 +81,7 @@ void beginBoard()
8181

8282
if (esp_reset_reason() == ESP_RST_POWERON)
8383
{
84-
// powerOnCheck(); //Only do check if we POR start
84+
//powerOnCheck(); //Only do check if we POR start
8585
}
8686

8787
pinMode(pin_peripheralPowerControl, OUTPUT);
@@ -287,6 +287,7 @@ void beginGNSS()
287287
if (response == false)
288288
{
289289
Serial.println(F("Failed to configure module. Hard stop."));
290+
displayGNSSFail(0);
290291
blinkError(ERROR_GPS_CONFIG_FAIL);
291292
}
292293
}

Firmware/RTK_Surveyor/NVM.ino

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ void recordSystemSettings()
4747
settings.sizeOfSettings = sizeof(settings);
4848
if (settings.sizeOfSettings > EEPROM_SIZE)
4949
{
50+
displayError((char*)"EEPROM");
51+
5052
while (1) //Hard freeze
5153
{
5254
Serial.printf("Size of settings is %d bytes\n\r", sizeof(settings));

0 commit comments

Comments
 (0)