Skip to content

Commit 89ebafc

Browse files
fifieldtmverch67Wvirgil123caveman99
authored
Minor TFT branch cherry-picks (#5682)
* update indicator board * Fixed the issue that indicator device uploads via rp2040 serial port in some cases. * esp debug logs * USB mode=1 messed up the debug log * dummy for config transfer (#5154) --------- Co-authored-by: mverch67 <[email protected]> Co-authored-by: virgil <[email protected]> Co-authored-by: Thomas Göttgens <[email protected]>
1 parent 43d6b31 commit 89ebafc

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

boards/seeed-sensecap-indicator.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
],
1616
"f_cpu": "240000000L",
1717
"f_flash": "80000000L",
18+
"f_boot": "120000000L",
19+
"boot": "qio",
1820
"flash_mode": "qio",
1921
"hwids": [["0x1A86", "0x7523"]],
2022
"mcu": "esp32s3",
21-
"variant": "esp32s3r8"
23+
"variant": "esp32s3"
2224
},
2325
"connectivity": ["wifi", "bluetooth", "lora"],
2426
"debug": {
@@ -32,9 +34,9 @@
3234
"flash_size": "8MB",
3335
"maximum_ram_size": 327680,
3436
"maximum_size": 8388608,
35-
"require_upload_port": true,
37+
"require_upload_port": false,
3638
"use_1200bps_touch": true,
37-
"wait_for_upload_port": true,
39+
"wait_for_upload_port": false,
3840
"speed": 921600
3941
},
4042
"url": "https://www.seeedstudio.com/Indicator-for-Meshtastic.html",

boards/t-deck.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"-DARDUINO_USB_CDC_ON_BOOT=1",
1111
"-DARDUINO_USB_MODE=0",
1212
"-DARDUINO_RUNNING_CORE=1",
13-
"-DARDUINO_EVENT_RUNNING_CORE=0"
13+
"-DARDUINO_EVENT_RUNNING_CORE=1"
1414
],
1515
"f_cpu": "240000000L",
1616
"f_flash": "80000000L",

src/mesh/PhoneAPI.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ bool PhoneAPI::handleToRadio(const uint8_t *buf, size_t bufLength)
164164
*
165165
* Our sending states progress in the following sequence (the client apps ASSUME THIS SEQUENCE, DO NOT CHANGE IT):
166166
STATE_SEND_MY_INFO, // send our my info record
167+
STATE_SEND_UIDATA,
167168
STATE_SEND_OWN_NODEINFO,
168169
STATE_SEND_METADATA,
169170
STATE_SEND_CHANNELS
@@ -290,6 +291,9 @@ size_t PhoneAPI::getFromRadio(uint8_t *buf)
290291
LOG_DEBUG("Send config: sessionkey");
291292
fromRadioScratch.config.which_payload_variant = meshtastic_Config_sessionkey_tag;
292293
break;
294+
case meshtastic_Config_device_ui_tag: // NOOP!
295+
fromRadioScratch.config.which_payload_variant = meshtastic_Config_device_ui_tag;
296+
break;
293297
default:
294298
LOG_ERROR("Unknown config type %d", config_state);
295299
}

src/modules/AdminModule.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,9 @@ void AdminModule::handleSetConfig(const meshtastic_Config &c)
633633
requiresReboot = false;
634634

635635
break;
636+
case meshtastic_Config_device_ui_tag:
637+
// NOOP! This is handled by handleStoreDeviceUIConfig
638+
break;
636639
}
637640
if (requiresReboot && !hasOpenEditTransaction) {
638641
disableBluetooth();
@@ -795,6 +798,10 @@ void AdminModule::handleGetConfig(const meshtastic_MeshPacket &req, const uint32
795798
LOG_INFO("Get config: Sessionkey");
796799
res.get_config_response.which_payload_variant = meshtastic_Config_sessionkey_tag;
797800
break;
801+
case meshtastic_AdminMessage_ConfigType_DEVICEUI_CONFIG:
802+
// NOOP! This is handled by handleGetDeviceUIConfig
803+
res.get_config_response.which_payload_variant = meshtastic_Config_device_ui_tag;
804+
break;
798805
}
799806
// NOTE: The phone app needs to know the ls_secs value so it can properly expect sleep behavior.
800807
// So even if we internally use 0 to represent 'use default' we still need to send the value we are

0 commit comments

Comments
 (0)