diff --git a/src/main.cpp b/src/main.cpp index c4db76f2f7b0d996ccbc538d08a1c6b6387e6dc3..02eb78c408d65f1543763a146ab3542035cee71c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,14 +1,10 @@ #include "config.h" #include "states.h" -#include <Arduino_LoRaWAN_ttn.h> -#include <lmic.h> -#include <hal/hal.h> -#include <SPI.h> -#include <CayenneLPP.h> #include "power.h" #include "gps.h" #include "lora.h" #include "button.h" +#include <CayenneLPP.h> int state; RTC_DATA_ATTR int bootCount = 0; @@ -34,7 +30,7 @@ void printPayload() { static void bootInfo() { ++bootCount; - Serial.println("Boot number: " + String(bootCount)); + Serial.printf("Boot number: %d\n", bootCount); esp_sleep_wakeup_cause_t wakeup_reason; wakeup_reason = esp_sleep_get_wakeup_cause();