mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-19 19:42:32 +00:00
Merge branch 'tft-gui-work' of https://github.com/meshtastic/firmware into tft-gui-work
This commit is contained in:
commit
106db1facc
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
@ -4,5 +4,8 @@
|
|||||||
"trunk.enableWindows": true,
|
"trunk.enableWindows": true,
|
||||||
"files.insertFinalNewline": false,
|
"files.insertFinalNewline": false,
|
||||||
"files.trimFinalNewlines": false,
|
"files.trimFinalNewlines": false,
|
||||||
"cmake.configureOnOpen": false
|
"cmake.configureOnOpen": false,
|
||||||
|
"[cpp]": {
|
||||||
|
"editor.defaultFormatter": "trunk.io"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -354,15 +354,14 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf)
|
|||||||
|
|
||||||
case STATE_SEND_FILEMANIFEST: {
|
case STATE_SEND_FILEMANIFEST: {
|
||||||
LOG_INFO("getFromRadio=STATE_SEND_FILEMANIFEST\n");
|
LOG_INFO("getFromRadio=STATE_SEND_FILEMANIFEST\n");
|
||||||
fromRadioScratch.which_payload_variant = meshtastic_FromRadio_fileInfo_tag;
|
// last element
|
||||||
if (config_state < filesManifest.size()) {
|
if (config_state == filesManifest.size()) { // also handles an empty filesManifest
|
||||||
|
state = STATE_SEND_COMPLETE_ID;
|
||||||
|
config_state = 0;
|
||||||
|
} else {
|
||||||
|
fromRadioScratch.which_payload_variant = meshtastic_FromRadio_fileInfo_tag;
|
||||||
fromRadioScratch.fileInfo = filesManifest.at(config_state);
|
fromRadioScratch.fileInfo = filesManifest.at(config_state);
|
||||||
config_state++;
|
config_state++;
|
||||||
// last element
|
|
||||||
if (config_state == filesManifest.size()) {
|
|
||||||
state = STATE_SEND_COMPLETE_ID;
|
|
||||||
config_state = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user