Fixed forgotten send_buffer_global

This commit is contained in:
Benjamin Vedder 2022-09-20 00:01:54 +02:00
parent 765ed4d3d4
commit 92855bf2c4
1 changed files with 2 additions and 2 deletions

View File

@ -1374,7 +1374,7 @@ void commands_process_packet(unsigned char *data, unsigned int len,
break;
}
chMtxLock(&send_buffer_mutex);
uint8_t *send_buffer_global = mempools_get_packet_buffer();
ind = 0;
send_buffer_global[ind++] = packet_id;
buffer_append_int32(send_buffer_global, DATA_QML_HW_SIZE, &ind);
@ -1383,7 +1383,7 @@ void commands_process_packet(unsigned char *data, unsigned int len,
ind += len_qml;
reply_func(send_buffer_global, ind);
chMtxUnlock(&send_buffer_mutex);
mempools_free_packet_buffer(send_buffer_global);
#endif
} break;