From 788ff354dc998f8b604c693d061faf36e4cccb82 Mon Sep 17 00:00:00 2001 From: August Quint <49277349+AugustQu@users.noreply.github.com> Date: Tue, 21 Jan 2020 15:00:35 +0100 Subject: [PATCH] plus code for SDS011 --- src/senddata.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/senddata.cpp b/src/senddata.cpp index f4f6b085..db0a4e20 100644 --- a/src/senddata.cpp +++ b/src/senddata.cpp @@ -13,6 +13,10 @@ void SendPayload(uint8_t port, sendprio_t prio) { MessageBuffer_t SendBuffer; // contains MessageSize, MessagePort, MessagePrio, Message[] +#if (HAS_SDS011) + sds011_loop(); +#endif + SendBuffer.MessageSize = payload.getSize(); SendBuffer.MessagePrio = prio; @@ -172,4 +176,4 @@ void flushQueues() { #ifdef HAS_SPI spi_queuereset(); #endif -} \ No newline at end of file +}