fix(fw): lua telemetry handling (#7773)

This commit is contained in:
3djc
2026-09-25 13:47:20 +10:00
committed by GitHub
parent 425944bff2
commit c2cfe393e1
5 changed files with 53 additions and 16 deletions
+10 -1
View File
@@ -237,8 +237,17 @@ extern OutputTelemetryBuffer outputTelemetryBuffer __DMA_NO_CACHE;
#define LUA_TELEMETRY_INPUT_FIFO_SIZE 256
typedef Fifo<uint8_t, LUA_TELEMETRY_INPUT_FIFO_SIZE> TelemetryQueue;
extern TelemetryQueue* luaInputTelemetryFifo;
// Create the lock protecting the queue list. Must be called before the
// scheduler is started.
void telemetryQueuesInit();
void registerTelemetryQueue(TelemetryQueue*);
void deregisterTelemetryQueue(TelemetryQueue*);
// Unregister and delete in one go: the producer runs in the timer task and
// would otherwise be able to write into a queue that has just been freed.
void destroyTelemetryQueue(TelemetryQueue*);
void pushTelemetryDataToQueues(uint8_t* data, int length);
#endif