Skip to content

Commit

Permalink
Merge branch 'fsck-block-development03-bugfix-minimalhistory' into de…
Browse files Browse the repository at this point in the history
…velopment03
  • Loading branch information
lumapu committed Jan 21, 2024
2 parents b173490 + 0f55841 commit b4c688f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ build_flags = ${env.build_flags}
monitor_filters =
esp8266_exception_decoder

[env:esp8266-minimal]
platform = espressif8266
board = esp12e
board_build.f_cpu = 80000000L
build_flags = ${env.build_flags}
-DEMC_MIN_FREE_MEMORY=4096
;-Wl,-Map,output.map
monitor_filters =
esp8266_exception_decoder



[env:esp8285]
platform = espressif8266
board = esp8285
Expand Down
4 changes: 4 additions & 0 deletions src/web/RestApi.h
Original file line number Diff line number Diff line change
Expand Up @@ -805,6 +805,8 @@ class RestApi {
}
obj[F("max")] = max;
obj[F("maxDay")] = mApp->getHistoryMaxDay();
#else
obj[F("refresh")] = 86400; // 1 day;
#endif /*ENABLE_HISTORY*/
}

Expand All @@ -820,6 +822,8 @@ class RestApi {
max = value;
}
obj[F("max")] = max;
#else
obj[F("refresh")] = 86400; // 1 day
#endif /*ENABLE_HISTORY*/
}

Expand Down

0 comments on commit b4c688f

Please sign in to comment.