Skip to content

Commit 785234d

Browse files
committed
Build with COMPILE_IM19_IMU commented out
1 parent b9892b9 commit 785234d

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

Firmware/RTK_Everywhere/Developer.ino

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,12 @@ void wifiVerifyTables() {}
240240

241241
void menuTilt() {}
242242
void nmeaApplyCompensation(char *nmeaSentence, int arraySize) {}
243-
void tiltUpdate() {}
244-
void tiltStop() {}
245-
void tiltSensorFactoryReset() {}
243+
void tiltDetect() {}
246244
bool tiltIsCorrecting() {return(false);}
247245
void tiltRequestStop() {}
246+
void tiltSensorFactoryReset() {}
247+
void tiltStop() {}
248+
void tiltUpdate() {}
248249

249250
#endif // COMPILE_IM19_IMU
250251

Firmware/RTK_Everywhere/Tilt.ino

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,8 +1020,6 @@ void applyCompensationGGA(char *nmeaSentence, int sentenceLength)
10201020
systemPrintf("Compensated GNGGA:\r\n%s\r\n", nmeaSentence);
10211021
}
10221022

1023-
#endif // COMPILE_IM19_IMU
1024-
10251023
// Determine if a tilt sensor is available or not
10261024
// Records outcome to NVM
10271025
void tiltDetect()
@@ -1041,7 +1039,6 @@ void tiltDetect()
10411039
if (settings.testedTilt == true)
10421040
return;
10431041

1044-
#ifdef COMPILE_IM19_IMU
10451042
// Locally instantiate the library and hardware so it will release on exit
10461043
IM19 *tiltSensor;
10471044

@@ -1072,11 +1069,10 @@ void tiltDetect()
10721069
}
10731070

10741071
SerialTiltTest.end(); // Release UART1 for reuse
1075-
1076-
#endif // COMPILE_IM19_IMU
1077-
10781072
systemPrintf("Tilt sensor %sdetected\r\n", settings.detectedTilt ? "" : "not ");
10791073
settings.testedTilt = true; //Record this test so we don't do it again
10801074
recordSystemSettings();
10811075
return;
10821076
}
1077+
1078+
#endif // COMPILE_IM19_IMU

0 commit comments

Comments
 (0)