Added thread safety to USB TX, servo control thread, primitive ADC thread, python test codes

This commit is contained in:
Your Name
2026-09-22 13:01:31 +03:00
parent 1d1416d5d8
commit dd7e6d9456
16 changed files with 944 additions and 40 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ void command_message_init(struct command_message_t *msg) {
msg->id = COMMAND_ID;
}
void command_create_message(struct command_message_t *msg, uint8_t length, commands_e command, uint8_t data[160]) {
void command_create_message(struct command_message_t *msg, uint8_t length, commands_e command, uint8_t data[]) {
// Ensure length doesn't exceed available space
if (length > sizeof(msg->data) - 1) {
return;