From fbd12e19296f89ac54f8268850fe995a4186c9df Mon Sep 17 00:00:00 2001 From: geeksville Date: Thu, 23 Apr 2020 13:56:15 -0700 Subject: [PATCH] oled screen probably works now on nrf52 --- src/main.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 12c362b93..c25b2a9c2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -47,13 +47,8 @@ AXP20X_Class axp; bool pmu_irq = false; #endif -// Global Screen singleton -#ifdef I2C_SDA -meshtastic::Screen screen(SSD1306_ADDRESS, I2C_SDA, I2C_SCL); -#else -// Fake values for pins to keep build happy, we won't ever initialize it. +// We always create a screen object, but we only init it if we find the hardware meshtastic::Screen screen(SSD1306_ADDRESS); -#endif // Global power status singleton static meshtastic::PowerStatus powerStatus;