Skip to content

Commit

Permalink
Clang format UART PM2.5 work
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Jan 23, 2025
1 parent 0ddb47f commit a93304f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Wippersnapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
} \
Expand Down
6 changes: 3 additions & 3 deletions src/components/uart/drivers/ws_uart_drv_pm25aqi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit a93304f

Please sign in to comment.