Precommit fix
This commit is contained in:
parent
50c534cbe5
commit
4aae1b912c
13
src/main.hpp
13
src/main.hpp
@ -48,6 +48,7 @@ extern RunMode runMode;
|
|||||||
#elif defined(ESP32C3)
|
#elif defined(ESP32C3)
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#include <LittleFS.h>
|
#include <LittleFS.h>
|
||||||
|
|
||||||
#include "esp32c3/rom/rtc.h"
|
#include "esp32c3/rom/rtc.h"
|
||||||
#define ESPhttpUpdate httpUpdate
|
#define ESPhttpUpdate httpUpdate
|
||||||
#define ESP_RESET ESP.restart
|
#define ESP_RESET ESP.restart
|
||||||
@ -59,15 +60,16 @@ extern RunMode runMode;
|
|||||||
#else
|
#else
|
||||||
#define PIN_SDA 7
|
#define PIN_SDA 7
|
||||||
#define PIN_SCL 6
|
#define PIN_SCL 6
|
||||||
#endif // JTAG_DEBUG
|
#endif // JTAG_DEBUG
|
||||||
#define PIN_DS A3
|
#define PIN_DS A3
|
||||||
#define PIN_A0 A0
|
#define PIN_A0 A0
|
||||||
// This should be the LED_BUILTIN, but that is also connected SDA (Gyro) so we
|
// This should be the LED_BUILTIN, but that is also connected SDA (Gyro) so we
|
||||||
// cannot use both. So we point LED to pin 8 which is not used.
|
// cannot use both. So we point LED to pin 8 which is not used.
|
||||||
#define PIN_LED 8
|
#define PIN_LED 8
|
||||||
#elif defined(ESP32S2)
|
#elif defined(ESP32S2)
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#include <LittleFS.h>
|
#include <LittleFS.h>
|
||||||
|
|
||||||
#include "esp32s2/rom/rtc.h"
|
#include "esp32s2/rom/rtc.h"
|
||||||
#define ESPhttpUpdate httpUpdate
|
#define ESPhttpUpdate httpUpdate
|
||||||
#define ESP_RESET ESP.restart
|
#define ESP_RESET ESP.restart
|
||||||
@ -80,6 +82,7 @@ extern RunMode runMode;
|
|||||||
#else // defined (ESP32)
|
#else // defined (ESP32)
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#include <LittleFS.h>
|
#include <LittleFS.h>
|
||||||
|
|
||||||
#include "esp32/rom/rtc.h"
|
#include "esp32/rom/rtc.h"
|
||||||
#define ESPhttpUpdate httpUpdate
|
#define ESPhttpUpdate httpUpdate
|
||||||
#define ESP_RESET ESP.restart
|
#define ESP_RESET ESP.restart
|
||||||
@ -92,8 +95,10 @@ extern RunMode runMode;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(USE_SERIAL_PINS) && defined(ESP32)
|
#if defined(USE_SERIAL_PINS) && defined(ESP32)
|
||||||
// #define EspSerial Serial0 // We cant use Serial on newer boards since this is using USBC port
|
// #define EspSerial Serial0 // We cant use Serial on newer boards since this is
|
||||||
#define EspSerial Serial0 // We cant use Serial on newer boards since this is using USBC port
|
// using USBC port
|
||||||
|
#define EspSerial \
|
||||||
|
Serial0 // We cant use Serial on newer boards since this is using USBC port
|
||||||
#else
|
#else
|
||||||
#define EspSerial Serial
|
#define EspSerial Serial
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user