From 191ed6489c5df8af51af8e422bc293216558f978 Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Sat, 20 Aug 2022 09:33:17 -0500 Subject: [PATCH] Backing out partition changes for testing --- bin/device-install.bat | 2 +- bin/device-install.sh | 2 +- partition-table.csv | 5 +++-- src/mesh/MeshService.cpp | 8 +++----- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/bin/device-install.bat b/bin/device-install.bat index d6a034a42..d8005255a 100755 --- a/bin/device-install.bat +++ b/bin/device-install.bat @@ -31,7 +31,7 @@ IF EXIST %FILENAME% ( %PYTHON% -m esptool --baud 115200 erase_flash %PYTHON% -m esptool --baud 115200 write_flash 0x1000 system-info.bin for %%f in (littlefs-*.bin) do ( - %PYTHON% -m esptool --baud 115200 write_flash 0x2B0000 %%f + %PYTHON% -m esptool --baud 115200 write_flash 0x00390000 %%f ) %PYTHON% -m esptool --baud 115200 write_flash 0x10000 %FILENAME% ) else ( diff --git a/bin/device-install.sh b/bin/device-install.sh index 95383405a..c42325a0e 100755 --- a/bin/device-install.sh +++ b/bin/device-install.sh @@ -48,7 +48,7 @@ if [ -f "${FILENAME}" ]; then echo "Trying to flash ${FILENAME}, but first erasing and writing system information" "$PYTHON" -m esptool erase_flash "$PYTHON" -m esptool write_flash 0x1000 system-info.bin - "$PYTHON" -m esptool write_flash 0x2B0000 littlefs-*.bin + "$PYTHON" -m esptool write_flash 0x00390000 littlefs-*.bin "$PYTHON" -m esptool write_flash 0x10000 ${FILENAME} else echo "Invalid file: ${FILENAME}" diff --git a/partition-table.csv b/partition-table.csv index 131b9bc83..dcf41ec41 100644 --- a/partition-table.csv +++ b/partition-table.csv @@ -3,5 +3,6 @@ # Name, Type, SubType, Offset, Size, Flags nvs, data, nvs, 0x9000, 0x5000, otadata, data, ota, 0xe000, 0x2000, -app0, app, ota_0, 0x10000, 0x2A0000, -spiffs, data, spiffs, 0x2B0000,0x150000, \ No newline at end of file +app0, app, ota_0, 0x10000, 0x1c0000, +app1, app, ota_1, 0x1d0000,0x1c0000, +spiffs, data, spiffs, 0x390000,0x070000, \ No newline at end of file diff --git a/src/mesh/MeshService.cpp b/src/mesh/MeshService.cpp index dafceafe0..91e7b7829 100644 --- a/src/mesh/MeshService.cpp +++ b/src/mesh/MeshService.cpp @@ -177,11 +177,9 @@ void MeshService::sendNetworkPing(NodeNum dest, bool wantReplies) DEBUG_MSG("Sending position ping to 0x%x, wantReplies=%d\n", dest, wantReplies); positionModule->sendOurPosition(dest, wantReplies); } - } else { - if (nodeInfoModule) { - DEBUG_MSG("Sending nodeinfo ping to 0x%x, wantReplies=%d\n", dest, wantReplies); - nodeInfoModule->sendOurNodeInfo(dest, wantReplies); - } + } else if (nodeInfoModule) { + DEBUG_MSG("Sending nodeinfo ping to 0x%x, wantReplies=%d\n", dest, wantReplies); + nodeInfoModule->sendOurNodeInfo(dest, wantReplies); } }