Fixes and new apps (#30)
- M5 Unit Modules library + M5 Unit Test app - Minor fixes for TodoList, TwoEleven, Snake, Brainfuck and Breakout - Fixed SerialConsole to use the uart controller as it was broken in one of the many updates - Fixed keyboard input in TwoEleven, Breakout, Magic8Ball and Snake - Bluetooth Media Keys app, supports pressing physical keys to trigger the corresponding buttonmatrix button - Epub Reader app
This commit is contained in:
@@ -11,10 +11,14 @@ void SerialConsole::stopActiveView() {
|
||||
}
|
||||
}
|
||||
|
||||
void SerialConsole::showConsoleView(std::unique_ptr<Uart> uart) {
|
||||
void SerialConsole::showConsoleView(Device* dev) {
|
||||
if (dev == nullptr) {
|
||||
ESP_LOGE(TAG, "showConsoleView: null device");
|
||||
return;
|
||||
}
|
||||
stopActiveView();
|
||||
activeView = &consoleView;
|
||||
consoleView.onStart(wrapperWidget, std::move(uart));
|
||||
consoleView.onStart(wrapperWidget, dev);
|
||||
lv_obj_remove_flag(disconnectButton, LV_OBJ_FLAG_HIDDEN);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user