From 206e37060ec05cfee2605f26559a43f975edc58a Mon Sep 17 00:00:00 2001 From: tyeth Date: Thu, 23 Jan 2025 19:38:42 +0000 Subject: [PATCH] Clang format UART PM2.5 work --- src/Wippersnapper.h | 2 +- src/components/uart/drivers/ws_uart_drv_pm25aqi.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Wippersnapper.h b/src/Wippersnapper.h index 3527c5302..409cebc0c 100644 --- a/src/Wippersnapper.h +++ b/src/Wippersnapper.h @@ -95,7 +95,7 @@ { \ unsigned long startTime = millis(); \ while (millis() - startTime < timeout) { \ - result_var = func(__VA_ARGS__); \ + result_var = func(__VA_ARGS__); \ if (condition(result_var)) { \ break; \ } \ diff --git a/src/components/uart/drivers/ws_uart_drv_pm25aqi.h b/src/components/uart/drivers/ws_uart_drv_pm25aqi.h index be044c89d..ff7abb8eb 100644 --- a/src/components/uart/drivers/ws_uart_drv_pm25aqi.h +++ b/src/components/uart/drivers/ws_uart_drv_pm25aqi.h @@ -104,9 +104,9 @@ class ws_uart_drv_pm25aqi : public ws_uart_drv { bool read_data() override { // Attempt to read the PM2.5 Sensor, can be flaky see Adafruit_PM25AQI#14 bool result = false; - RETRY_FUNCTION_UNTIL_TIMEOUT(_aqi->read, bool, result, - [](bool res) -> bool { return res==true; }, - 500, 100, &_data); + RETRY_FUNCTION_UNTIL_TIMEOUT( + _aqi->read, bool, result, [](bool res) -> bool { return res == true; }, + 500, 100, &_data); if (!result) { WS_DEBUG_PRINTLN("[UART, PM25] Data not available.");