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 04a377e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
4 changes: 2 additions & 2 deletions src/components/uart/drivers/ws_uart_drv_pm25aqi.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ 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; },
RETRY_FUNCTION_UNTIL_TIMEOUT(
_aqi->read, bool, result, [](bool res) -> bool { return res==true; },
500, 100, &_data);

if (!result) {
Expand Down

0 comments on commit 04a377e

Please sign in to comment.