diff --git a/platformio.ini b/platformio.ini index 355170de25..2e7a2b1cda 100644 --- a/platformio.ini +++ b/platformio.ini @@ -55,14 +55,16 @@ debug_tool = jlink debug_init_break = tbreak setup +; Note: some libraries are specified by #ID where there are conflicting library +; names. lib_deps = https://github.com/geeksville/RadioHead.git - TinyGPSPlus + 1655 ; TinyGPSPlus https://github.com/geeksville/esp8266-oled-ssd1306.git ; ESP8266_SSD1306 AXP202X_Library SPI - OneButton - CRC32 ; explicitly needed because dependency is missing in the ble ota update lib + 1260 ; OneButton + 1202 ; CRC32, explicitly needed because dependency is missing in the ble ota update lib Wire ; explicitly needed here because the AXP202 library forgets to add it https://github.com/geeksville/arduino-fsm.git @@ -71,4 +73,4 @@ lib_deps = ;[env:heltec] ;build_type = debug ; to make it possible to step through our jtag debugger -;board = heltec_wifi_lora_32_V2 \ No newline at end of file +;board = heltec_wifi_lora_32_V2 diff --git a/src/PowerFSM.h b/src/PowerFSM.h index ea1e589dd1..f8a013dd21 100644 --- a/src/PowerFSM.h +++ b/src/PowerFSM.h @@ -1,6 +1,6 @@ #pragma once -#include "Fsm.h" +#include // See sw-design.md for documentation @@ -16,4 +16,4 @@ extern Fsm powerFSM; -void PowerFSM_setup(); \ No newline at end of file +void PowerFSM_setup(); diff --git a/src/screen.cpp b/src/screen.cpp index fdfdbe7bdc..abd4b22207 100644 --- a/src/screen.cpp +++ b/src/screen.cpp @@ -510,7 +510,7 @@ void Screen::setOn(bool on) } } -static void screen_print(const char *text, uint8_t x, uint8_t y, uint8_t alignment) +void screen_print(const char *text, uint8_t x, uint8_t y, uint8_t alignment) { DEBUG_MSG(text); @@ -709,4 +709,4 @@ void Screen::onPress() targetFramerate = TRANSITION_FRAMERATE; ui.setTargetFPS(targetFramerate); } -} \ No newline at end of file +} diff --git a/src/screen.h b/src/screen.h index 18918bf188..ed3c780b64 100644 --- a/src/screen.h +++ b/src/screen.h @@ -3,6 +3,7 @@ #include "PeriodicTask.h" void screen_print(const char * text); +void screen_print(const char * text, uint8_t x, uint8_t y, uint8_t alignment); // Show the bluetooth PIN screen @@ -36,4 +37,4 @@ class Screen : public PeriodicTask void onPress(); }; -extern Screen screen; \ No newline at end of file +extern Screen screen;