1
0
forked from me/IronOS

Add new debug menu item to view raw hall effect sensor output.

This commit is contained in:
Christian Rahl
2022-01-22 19:33:24 -05:00
parent 294f9c2ff6
commit 05f38b096c
2 changed files with 11 additions and 1 deletions

View File

@@ -782,6 +782,15 @@ void showDebugMenu(void) {
// Max deg C limit
OLED::printNumber(TipThermoModel::getTipMaxInC(), 3, FontStyle::SMALL);
break;
case 13:
// Print raw hall effect value if availabe, none if hall effect disabled.
if (getHallSensorFitted()) {
OLED::printNumber(getRawHallEffect(), 6, FontStyle::SMALL);
}
else {
OLED::print(translatedString(Tr->OffString), FontStyle::SMALL);
}
break;
default:
break;
}
@@ -792,7 +801,7 @@ void showDebugMenu(void) {
return;
else if (b == BUTTON_F_SHORT) {
screen++;
screen = screen % 13;
screen = screen % 14;
}
GUIDelay();
}