fix: update SPIFFS binary creation and enhance NFC buffer size
This commit is contained in:
@ -19,6 +19,12 @@
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
|
||||
uint64_t chipid;
|
||||
|
||||
chipid = ESP.getEfuseMac(); //The chip ID is essentially its MAC address(length: 6 bytes).
|
||||
Serial.printf("ESP32 Chip ID = %04X", (uint16_t)(chipid >> 32)); //print High 2 bytes
|
||||
Serial.printf("%08X\n", (uint32_t)chipid); //print Low 4bytes.
|
||||
|
||||
// Initialize SPIFFS
|
||||
initializeSPIFFS();
|
||||
|
||||
|
@ -431,6 +431,7 @@ void scanRfidTask(void * parameter) {
|
||||
}
|
||||
|
||||
void startNfc() {
|
||||
Wire.setBufferSize(256);
|
||||
nfc.begin(); // Beginne Kommunikation mit RFID Leser
|
||||
delay(1000);
|
||||
unsigned long versiondata = nfc.getFirmwareVersion(); // Lese Versionsnummer der Firmware aus
|
||||
|
@ -403,7 +403,8 @@ void setupWebserver(AsyncWebServer &server) {
|
||||
backupJsonConfigs();
|
||||
}
|
||||
|
||||
if (!Update.begin(updateSize, command)) {
|
||||
// Setze spezifische Update-Flags für SPIFFS-Updates
|
||||
if (!Update.begin(updateSize, command, command == U_SPIFFS ? true : false, command == U_SPIFFS ? 0 : -1)) {
|
||||
if (command == U_SPIFFS) {
|
||||
// Restore JSON config files if update fails at start
|
||||
restoreJsonConfigs();
|
||||
|
Reference in New Issue
Block a user