Skip to content

Commit 639be19

Browse files
authored
Merge pull request #779 from LeeLeahy2/no-tilt
Build with COMPILE_IM19_IMU commented out
2 parents 603d1c5 + 785234d commit 639be19

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
@@ -278,11 +278,12 @@ void wifiVerifyTables() {}
278278

279279
void menuTilt() {}
280280
void nmeaApplyCompensation(char *nmeaSentence, int arraySize) {}
281-
void tiltUpdate() {}
282-
void tiltStop() {}
283-
void tiltSensorFactoryReset() {}
281+
void tiltDetect() {}
284282
bool tiltIsCorrecting() {return(false);}
285283
void tiltRequestStop() {}
284+
void tiltSensorFactoryReset() {}
285+
void tiltStop() {}
286+
void tiltUpdate() {}
286287

287288
#endif // COMPILE_IM19_IMU
288289

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)