Skip to content

Bump version to 1.0.2 to publish BMI270 i2c_port_t fix - #7

Merged
Gitshaoxiang merged 1 commit into
m5stack:mainfrom
devilSatou:claude/bmi270-i2c-port-warning-7i29d2
Oct 20, 2026
Merged

Gitshaoxiang merged 1 commit into
m5stack:mainfrom
devilSatou:claude/bmi270-i2c-port-warning-7i29d2

Conversation

@devilSatou

Copy link
Copy Markdown

Summary

Issue #5 ("invalid conversion") was fixed on main by 1aaf0d6 (#6), but the library version was not bumped. The latest tag is still 1.0.1 (b442dc9), which predates the fix and still contains:

i2c_port_t i2c_port = 0;

So anyone installing the library through the Arduino Library Manager or the PlatformIO registry still gets the old BMI270.h and the invalid conversion from 'int' to 'i2c_port_t' error. That is what the latest comment on #5 reports. With PlatformIO, for example:

.pio/libdeps/m5stack-cores3/M5Module-GNSS/src/BMI270.h:39:31: warning: invalid conversion from 'int' to 'i2c_port_t' [-fpermissive]
   39 |         i2c_port_t i2c_port = 0;
      |                               ^

Changes

  • library.json / library.properties: 1.0.1 → 1.0.2

There are no source changes, because main already has the fix. After merging, tagging 1.0.2 (and publishing to the PlatformIO registry, if that is done manually) is what delivers the fix to users.

Refs #5

🤖 Generated with Claude Code

The invalid int -> i2c_port_t conversion in BMI270.h (dev_info::i2c_port)
was already fixed on main by commit 1aaf0d6, but the library version was
never bumped, so PlatformIO's Library Registry still serves the old 1.0.1
release without the fix, and users pulling M5Module-GNSS as a dependency
still hit the -fpermissive warning. Bump to 1.0.2 so a new release ships
the fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants