From bbe69d194cdbfb0694c2842d8cee811f452fa7e4 Mon Sep 17 00:00:00 2001 From: "Nicholas J. Michalek" Date: Fri, 16 Dec 2022 03:21:31 -0500 Subject: [PATCH] Display encoder direction config on Calibration screen --- software/o_c_REV/OC_calibration.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/software/o_c_REV/OC_calibration.ino b/software/o_c_REV/OC_calibration.ino index 25db4af01..fd45a2aaf 100644 --- a/software/o_c_REV/OC_calibration.ino +++ b/software/o_c_REV/OC_calibration.ino @@ -521,6 +521,14 @@ void calibration_draw(const CalibrationState &state) { graphics.setPrintPos(menu::kIndentDx, y + 2); if (step->help) graphics.print(step->help); + + // NJM: display encoder direction config on first and last screens + if (step->step == HELLO || step->step == CALIBRATION_EXIT) { + y += menu::kMenuLineH; + graphics.setPrintPos(menu::kIndentDx, y + 2); + graphics.print("Encoders: "); + graphics.print(OC::Strings::encoder_config_strings[ OC::calibration_data.encoder_config() ]); + } weegfx::coord_t x = menu::kDisplayWidth - 22; y = 2;