Skip to content

Remove early return during scan of BME address for BMP sensors#9935

Merged
thebentern merged 6 commits into
meshtastic:developfrom
NomDeTom:Scan_BMP
Mar 19, 2026
Merged

Remove early return during scan of BME address for BMP sensors#9935
thebentern merged 6 commits into
meshtastic:developfrom
NomDeTom:Scan_BMP

Conversation

@NomDeTom

Copy link
Copy Markdown
Collaborator

This PR may solve the issue highlighted in #9811

@github-actions github-actions Bot added needs-review Needs human review bugfix Pull request that fixes bugs labels Mar 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts I2C device identification logic in ScanI2CTwoWire by modifying switch control-flow in the BME/BMP/DPS sensor detection path.

Changes:

  • Removes an extra break; in the BME_ADDR identification switch, altering fallthrough behavior.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/detect/ScanI2CTwoWire.cpp
NomDeTom and others added 2 commits March 19, 2026 09:26
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@thebentern thebentern requested a review from Copilot March 19, 2026 11:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes I2C sensor detection for BMP388/BMP390 devices that respond with 0x00 to the BME/BMP ID register (0xD0) by preventing an unconditional exit after the DPS310 probe, allowing the subsequent BMP3xx/BMP280 detection logic to run (addresses issue #9811).

Changes:

  • Removes the unconditional break after the DPS310 check when 0xD0 returns 0x00.
  • Adds a conditional break only when a DPS310 is positively identified, otherwise falling through to the BMP3xx/BMP280 ID probe path.

You can also share your feedback on Copilot code review. Take the survey.

@thebentern thebentern merged commit c88b802 into meshtastic:develop Mar 19, 2026
69 checks passed
thebentern added a commit that referenced this pull request Mar 19, 2026
* 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>
@NomDeTom NomDeTom deleted the Scan_BMP branch May 5, 2026 10:24
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
…astic#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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull request that fixes bugs needs-review Needs human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants