mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
stm fix & bin
This commit is contained in:
Binary file not shown.
@@ -2,8 +2,10 @@
|
|||||||
#include "systemconfigdata.h"
|
#include "systemconfigdata.h"
|
||||||
|
|
||||||
#include <main.h>
|
#include <main.h>
|
||||||
#include <WiFiOTA.h>
|
|
||||||
|
|
||||||
|
#ifdef OTA
|
||||||
|
#include <WiFiOTA.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#if defined(ARDUINO_ARCH_AVR)
|
#if defined(ARDUINO_ARCH_AVR)
|
||||||
@@ -133,7 +135,9 @@ NRFFlashStorage EEPROM;
|
|||||||
streamSize = MAX_JSON_CONF_SIZE;
|
streamSize = MAX_JSON_CONF_SIZE;
|
||||||
startPos = EEPROM_offsetJSON;
|
startPos = EEPROM_offsetJSON;
|
||||||
textMode = true;
|
textMode = true;
|
||||||
|
#ifdef OTA
|
||||||
contentType = HTTP_TEXT_JSON;
|
contentType = HTTP_TEXT_JSON;
|
||||||
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
case FN_CONFIG_BIN:
|
case FN_CONFIG_BIN:
|
||||||
@@ -141,7 +145,9 @@ NRFFlashStorage EEPROM;
|
|||||||
startPos = SYSCONF_OFFSET;
|
startPos = SYSCONF_OFFSET;
|
||||||
streamSize = SYSCONF_SIZE;
|
streamSize = SYSCONF_SIZE;
|
||||||
textMode =false;
|
textMode =false;
|
||||||
|
#ifdef OTA
|
||||||
contentType = HTTP_OCTET_STREAM;
|
contentType = HTTP_OCTET_STREAM;
|
||||||
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user