fix(simulator): fixed LCD flush sync with QT simulator (#2030)
This commit is contained in:
@@ -133,6 +133,8 @@ void SimulatedUIWidget::onLcdChange(bool backlightEnable)
|
||||
return;
|
||||
|
||||
m_lcd->onLcdChanged(backlightEnable);
|
||||
m_simulator->lcdFlushed();
|
||||
|
||||
setLightOn(backlightEnable);
|
||||
}
|
||||
|
||||
|
||||
@@ -145,6 +145,7 @@ class SimulatorInterface : public QObject
|
||||
virtual void setInputValue(int type, uint8_t index, int16_t value) = 0;
|
||||
virtual void rotaryEncoderEvent(int steps) = 0;
|
||||
virtual void touchEvent(int type, int x, int y) = 0;
|
||||
virtual void lcdFlushed() = 0;
|
||||
virtual void setTrainerTimeout(uint16_t ms) = 0;
|
||||
virtual void sendTelemetry(const QByteArray data) = 0;
|
||||
virtual void setLuaStateReloadPermanentScripts() = 0;
|
||||
|
||||
Reference in New Issue
Block a user