Remove linkedlist pointer from Telem on habitat queue.

pull/53/head
Phil Crump 2018-05-07 09:38:42 +00:00
rodzic 5be4c31726
commit 8f0fa21f3a
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -1021,8 +1021,9 @@ void ProcessTelemetryMessage(int Channel, received_t *Received)
received_t *queueReceived = malloc(sizeof(received_t));
if(queueReceived != NULL)
{
/* WARNING: Doesn't copy linked-list :/ */
memcpy(queueReceived, Received, sizeof(received_t));
/* We haven't copied the linked list, this'll be free()ed later, so remove pointer */
queueReceived->Telemetry.habpack_extra = NULL;
/* Push pointer onto upload queue */
lifo_buffer_push(&Habitat_Upload_Buffer, (void *)queueReceived);