Skip to content

Commit a93304f

Browse files
committed
Clang format UART PM2.5 work
1 parent 0ddb47f commit a93304f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Wippersnapper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
{ \
9696
unsigned long startTime = millis(); \
9797
while (millis() - startTime < timeout) { \
98-
result_var = func(__VA_ARGS__); \
98+
result_var = func(__VA_ARGS__); \
9999
if (condition(result_var)) { \
100100
break; \
101101
} \

src/components/uart/drivers/ws_uart_drv_pm25aqi.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ class ws_uart_drv_pm25aqi : public ws_uart_drv {
104104
bool read_data() override {
105105
// Attempt to read the PM2.5 Sensor, can be flaky see Adafruit_PM25AQI#14
106106
bool result = false;
107-
RETRY_FUNCTION_UNTIL_TIMEOUT(_aqi->read, bool, result,
108-
[](bool res) -> bool { return res==true; },
109-
500, 100, &_data);
107+
RETRY_FUNCTION_UNTIL_TIMEOUT(
108+
_aqi->read, bool, result, [](bool res) -> bool { return res==true; },
109+
500, 100, &_data);
110110

111111
if (!result) {
112112
WS_DEBUG_PRINTLN("[UART, PM25] Data not available.");

0 commit comments

Comments
 (0)