Skip to content

Commit 007d80a

Browse files
authored
feat: Remove EspBox references from main code for easier portability (#98)
1 parent 1e58ca5 commit 007d80a

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

main/cart.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class Cart {
155155
virtual bool run() {
156156
running_ = true;
157157
// handle touchpad so we can know if the user presses the menu
158-
auto touch = espp::EspBox::get().touchpad_data();
158+
auto touch = BoxEmu::Bsp::get().touchpad_data();
159159
bool btn_state = touch.btn_state;
160160
// also get the gamepad input state so we can know if the user presses the
161161
// start/select buttons together to bring up the menu

main/main.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ extern "C" void app_main(void) {
2424
logger.info("Bootup");
2525

2626
// initialize the hardware abstraction layer
27-
espp::EspBox &box = espp::EspBox::get();
28-
logger.info("Running on {}", box.box_type());
2927
BoxEmu &emu = BoxEmu::get();
3028
logger.info("Box Emu version: {}", emu.version());
3129

@@ -67,7 +65,7 @@ extern "C" void app_main(void) {
6765

6866
logger.info("initializing gui...");
6967

70-
auto display = box.display();
68+
auto display = BoxEmu::Bsp::get().display();
7169

7270
// initialize the gui
7371
Gui gui({

0 commit comments

Comments
 (0)