Cleanups after rebase
This commit is contained in:
@ -32,7 +32,6 @@ class MainMenu;
|
|||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
#ifdef GLUMP_CONTROLLER
|
|
||||||
class SettingsMenu;
|
class SettingsMenu;
|
||||||
using BluetoothModeChangeDisplay = makeComponent<
|
using BluetoothModeChangeDisplay = makeComponent<
|
||||||
ChangeValueDisplay<BluetoothMode>,
|
ChangeValueDisplay<BluetoothMode>,
|
||||||
@ -42,6 +41,7 @@ using BluetoothModeChangeDisplay = makeComponent<
|
|||||||
SwitchScreenAction<SettingsMenu>
|
SwitchScreenAction<SettingsMenu>
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
#ifdef GLUMP_CONTROLLER
|
||||||
struct FrontLedAccessor : public RefAccessor<bool> { bool &getRef() const override { return front.command.led; } };
|
struct FrontLedAccessor : public RefAccessor<bool> { bool &getRef() const override { return front.command.led; } };
|
||||||
struct BackLedAccessor : public RefAccessor<bool> { bool &getRef() const override { return back.command.led; } };
|
struct BackLedAccessor : public RefAccessor<bool> { bool &getRef() const override { return back.command.led; } };
|
||||||
#endif
|
#endif
|
||||||
@ -59,7 +59,6 @@ class SettingsMenu :
|
|||||||
#endif
|
#endif
|
||||||
makeComponent<MenuItem, StaticText<TEXT_CONTROLLERHARDWARESETTINGS>, SwitchScreenAction<ControllerHardwareSettingsMenu>, StaticMenuItemIcon<&icons::hardware>>,
|
makeComponent<MenuItem, StaticText<TEXT_CONTROLLERHARDWARESETTINGS>, SwitchScreenAction<ControllerHardwareSettingsMenu>, StaticMenuItemIcon<&icons::hardware>>,
|
||||||
makeComponent<MenuItem, StaticText<TEXT_BOARDCOMPUTERHARDWARESETTINGS>, SwitchScreenAction<BoardcomputerHardwareSettingsMenu>, StaticMenuItemIcon<&icons::hardware>>,
|
makeComponent<MenuItem, StaticText<TEXT_BOARDCOMPUTERHARDWARESETTINGS>, SwitchScreenAction<BoardcomputerHardwareSettingsMenu>, StaticMenuItemIcon<&icons::hardware>>,
|
||||||
#endif
|
|
||||||
makeComponent<MenuItem, StaticText<TEXT_BLUETOOTHMODE>, SwitchScreenAction<BluetoothModeChangeDisplay>>,
|
makeComponent<MenuItem, StaticText<TEXT_BLUETOOTHMODE>, SwitchScreenAction<BluetoothModeChangeDisplay>>,
|
||||||
#ifdef FEATURE_BMS
|
#ifdef FEATURE_BMS
|
||||||
makeComponent<MenuItem, StaticText<TEXT_AUTOCONNECTBMS>, ToggleBoolAction, CheckboxIcon, AutoConnectBmsAccessor>,
|
makeComponent<MenuItem, StaticText<TEXT_AUTOCONNECTBMS>, ToggleBoolAction, CheckboxIcon, AutoConnectBmsAccessor>,
|
||||||
|
@ -168,17 +168,11 @@ void StatusDisplay::initScreen()
|
|||||||
m_labelLimit0.start();
|
m_labelLimit0.start();
|
||||||
tft.drawString("IP:", 0, bottomLines[1]);
|
tft.drawString("IP:", 0, bottomLines[1]);
|
||||||
m_labelIpAddress.start();
|
m_labelIpAddress.start();
|
||||||
<<<<<<< HEAD
|
#ifdef GLUMP_CONTROLLER
|
||||||
tft.drawString("Limit1:", 160, bottomLines[1]);
|
tft.drawString("Limit1:", 160, bottomLines[1]);
|
||||||
m_labelLimit1.start();
|
m_labelLimit1.start();
|
||||||
tft.drawString("Performance:", 0, bottomLines[2]);
|
|
||||||
=======
|
|
||||||
#ifdef GLUMP_CONTROLLER
|
|
||||||
tft.drawString("Limit1:", 160, 281);
|
|
||||||
m_labelLimit1.start();
|
|
||||||
#endif
|
#endif
|
||||||
tft.drawString("Performance:", 0, 296);
|
tft.drawString("Performance:", 0, bottomLines[2]);
|
||||||
>>>>>>> b343056... vesc control
|
|
||||||
m_labelPerformance.start();
|
m_labelPerformance.start();
|
||||||
tft.drawString("Mode:", 125, bottomLines[2]);
|
tft.drawString("Mode:", 125, bottomLines[2]);
|
||||||
m_labelMode.start();
|
m_labelMode.start();
|
||||||
|
Reference in New Issue
Block a user