mirror of https://github.com/rusefi/bldc.git
Fixed forgotten send_buffer_global
This commit is contained in:
parent
765ed4d3d4
commit
92855bf2c4
|
@ -1374,7 +1374,7 @@ void commands_process_packet(unsigned char *data, unsigned int len,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
chMtxLock(&send_buffer_mutex);
|
uint8_t *send_buffer_global = mempools_get_packet_buffer();
|
||||||
ind = 0;
|
ind = 0;
|
||||||
send_buffer_global[ind++] = packet_id;
|
send_buffer_global[ind++] = packet_id;
|
||||||
buffer_append_int32(send_buffer_global, DATA_QML_HW_SIZE, &ind);
|
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;
|
ind += len_qml;
|
||||||
reply_func(send_buffer_global, ind);
|
reply_func(send_buffer_global, ind);
|
||||||
|
|
||||||
chMtxUnlock(&send_buffer_mutex);
|
mempools_free_packet_buffer(send_buffer_global);
|
||||||
#endif
|
#endif
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue