[apds9306] clang-tidy fixes for #7822 (#7872)

This commit is contained in:
Keith Burzinski 2024-11-27 16:25:00 -06:00 committed by GitHub
parent e124151e5c
commit 7aa3a1a1cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,7 +122,8 @@ void APDS9306::update() {
this->status_clear_warning();
if (!(status &= 0b00001000)) { // No new data
status &= 0b00001000;
if (!status) { // No new data
return;
}