Optimize occasional RAK Companion management code for size

This commit is contained in:
mikecarper committed 2026-10-23 09:51:40 -07:00
1 parent b6efdbdb27
commit 5d70d0af76
1 file changed
+7
+7
View File
@@ -3861,6 +3861,10 @@ bool MyMesh::handleTxRoutingCommand(const char* command, char* reply, size_t rep
return true;
}
#if defined(RAK_4631) && defined(COMPANION_RADIO_FULL)
// Keep occasional management work out of the space-optimized hot call graph.
__attribute__((cold))
#endif
bool MyMesh::handleLocalControlCommand(const char* command, char* reply,
size_t reply_size) {
if (!command || !reply || reply_size == 0) return false;
@@ -9955,6 +9959,9 @@ bool MyMesh::streamTerminalBusy() const {
}
#endif
#if defined(RAK_4631) && defined(COMPANION_RADIO_FULL)
__attribute__((cold))
#endif
void MyMesh::handleTerminalCommand(char* command, bool reader_prompt,
mesh::ReaderTryWrite reader_try_write) {
while (*command == ' ' || *command == '\t') command++;