[SYS] Remove unnecessaries ESP8266 ESP32 macros (#1931)
This commit is contained in:
1 parent
2065d57e11
commit
2645928dbd
11 files changed
+324
-505
No files matched your search
@@ -66,7 +66,6 @@ uint32_t gc_checksum() {
|
||||
return checksum;
|
||||
}
|
||||
|
||||
# if defined(ESP8266) || defined(ESP32)
|
||||
void eeprom_setup() {
|
||||
EEPROM.begin(4096);
|
||||
pGC = (struct _GLOBAL_CONFIG*)EEPROM.getDataPtr();
|
||||
@@ -84,14 +83,11 @@ void eeprom_setup() {
|
||||
EEPROM.commit();
|
||||
}
|
||||
}
|
||||
# endif
|
||||
|
||||
RFM69 radio;
|
||||
|
||||
void setupRFM69(void) {
|
||||
# if defined(ESP8266) || defined(ESP32)
|
||||
eeprom_setup();
|
||||
# endif
|
||||
int freq;
|
||||
static const char PROGMEM JSONtemplate[] =
|
||||
R"({"msgType":"config","freq":%d,"rfm69hcw":%d,"netid":%d,"power":%d})";
|
||||
|
||||
Reference in new issue
Block a user