mirror of
https://github.com/martin-ger/esp_wifi_repeater.git
synced 2026-07-27 19:56:03 +00:00
Update memory location and OTA output.
This commit is contained in:
@@ -369,7 +369,7 @@ If "QIO" mode fails on your device, try "DIO" instead. Also have a look at the "
|
||||
|
||||
Based on using the rboot lib: https://github.com/raburton/rboot
|
||||
|
||||
User flash location `FLASH_BLOCK_NO` was updated as `0x0c` -> `0xff` conflicted with the rboot memory locations.
|
||||
User flash location `FLASH_BLOCK_NO` was updated as `0xc` -> `0x4e` conflicted with the rboot memory locations. Also this is a viable space between the ROM locations written that config can be shared.
|
||||
|
||||
Memory mapping updates:
|
||||
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
#include "user_config.h"
|
||||
#include "acl.h"
|
||||
|
||||
#define FLASH_BLOCK_NO 0xff
|
||||
#define FLASH_BLOCK_NO 0x4e
|
||||
|
||||
#define MAGIC_NUMBER 0x152435fc
|
||||
|
||||
|
||||
@@ -1299,7 +1299,14 @@ void ICACHE_FLASH_ATTR console_handle_command(struct espconn *pespconn)
|
||||
#endif
|
||||
#ifdef OTAUPDATE
|
||||
if (nTokens == 2 && strcmp(tokens[1], "ota") == 0) {
|
||||
to_console("Firmware update: ");
|
||||
to_console(OTA_HOST);
|
||||
//to_console(OTA_PORT);
|
||||
to_console("/");
|
||||
to_console(OTA_ROM0);
|
||||
to_console(" OR ");
|
||||
to_console(OTA_ROM1);
|
||||
to_console("\r\n");
|
||||
os_sprintf_flash(response, "Currently running rom %d.\r\n", rboot_get_current_rom());
|
||||
to_console(response);
|
||||
goto command_handled_2;
|
||||
|
||||
Reference in New Issue
Block a user