Fixed telemetry-storage build.
CSP_DEFINE_TASK(telemetry_store_rx)
{
telemetry_packet packet;
- pubsub_conn * connection;
+ socket_conn connection;
- while((connection = telemetry_connect()) == NULL)
+ while(!telemetry_connect(&connection))
{
csp_sleep_ms(STORAGE_SUBSCRIBE_RETRY_INTERVAL);
}
/* Subscribe to telemetry publishers as specified in the configuration */
- while (!telemetry_subscribe(connection, STORAGE_SUBSCRIPTIONS))
+ while (!telemetry_subscribe(&connection, STORAGE_SUBSCRIPTIONS))
{
/* Retry subscribing at the interval specified in the configuration*/
csp_sleep_ms(STORAGE_SUBSCRIBE_RETRY_INTERVAL);
@@ -40,7 +40,7 @@ CSP_DEFINE_TASK(telemetry_store_rx)
while (1)
{
- if (telemetry_read(connection, &packet))
+ if (telemetry_read(&connection, &packet))
{
/* Store telemetry packets from the telemetry system */
telemetry_store(packet);
