1
0
forked from me/IronOS

Added Ifdef to check against if the hall sensor is available to read. If not, read back OFF.

This commit is contained in:
Christian Rahl
2022-01-22 22:30:15 -05:00
parent 05f38b096c
commit 7bb5b6adb7

View File

@@ -784,12 +784,11 @@ void showDebugMenu(void) {
break;
case 13:
// Print raw hall effect value if availabe, none if hall effect disabled.
if (getHallSensorFitted()) {
#ifdef HALL_SENSOR
OLED::printNumber(getRawHallEffect(), 6, FontStyle::SMALL);
}
else {
#else
OLED::print(translatedString(Tr->OffString), FontStyle::SMALL);
}
#endif
break;
default:
break;