Skip to content

Commit e1d238b

Browse files
NomDeTomCopilotthebentern
committed
Remove early return during scan of BME address for BMP sensors (#9935)
* Enable pre-hop drop handling by default * Remove early break if BME/DPS sensors are not detected at the BME address * revert sneaky change * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
1 parent 286bc85 commit e1d238b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/detect/ScanI2CTwoWire.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,9 @@ void ScanI2CTwoWire::scanPort(I2CPort port, uint8_t *address, uint8_t asize)
341341
type = DPS310;
342342
break;
343343
}
344-
break;
344+
if (type == DPS310) {
345+
break;
346+
}
345347
default:
346348
registerValue = getRegisterValue(ScanI2CTwoWire::RegisterLocation(addr, 0x00), 1); // GET_ID
347349
switch (registerValue) {

0 commit comments

Comments
 (0)