Skip to content

Commit b6a08a8

Browse files
committed
Restart I2C bus only if it is offline
Fix #445
1 parent 6465867 commit b6a08a8

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Firmware/RTK_Everywhere/menuSystem.ino

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ void menuSystem()
88

99
printTimeStamp();
1010

11-
beginI2C();
1211
if (online.i2c == false)
13-
systemPrintln("I2C: Offline - Something is causing bus problems");
12+
{
13+
beginI2C();
14+
if (online.i2c == false)
15+
systemPrintln("I2C: Offline - Something is causing bus problems");
16+
}
1417

1518
systemPrint("GNSS: ");
1619
if (online.gnss == true)
@@ -1397,7 +1400,8 @@ void menuInstrument()
13971400
systemPrintf("Combined Height of Instrument: %0.3fm\r\n",
13981401
((settings.antennaHeight_mm + settings.antennaPhaseCenter_mm) / 1000.0));
13991402

1400-
systemPrintf("1) Set Antenna Height (a.k.a. Pole Length): %0.3lfm\r\n", settings.antennaHeight_mm / (double)1000.0);
1403+
systemPrintf("1) Set Antenna Height (a.k.a. Pole Length): %0.3lfm\r\n",
1404+
settings.antennaHeight_mm / (double)1000.0);
14011405

14021406
systemPrintf("2) Set Antenna Phase Center (a.k.a. ARP): %0.1fmm\r\n", settings.antennaPhaseCenter_mm);
14031407

0 commit comments

Comments
 (0)