Skip to content

Commit 04a377e

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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ 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; },
107+
RETRY_FUNCTION_UNTIL_TIMEOUT(
108+
_aqi->read, bool, result, [](bool res) -> bool { return res==true; },
109109
500, 100, &_data);
110110

111111
if (!result) {

0 commit comments

Comments
 (0)