Skip to content

Release v0.5.0#27

Merged
n-elia merged 6 commits into
mainfrom
dev
May 18, 2026
Merged

Release v0.5.0#27
n-elia merged 6 commits into
mainfrom
dev

Conversation

@n-elia
Copy link
Copy Markdown
Owner

@n-elia n-elia commented May 18, 2026

Releases v0.5.0. Bundles the bug fixes from #26 plus example/changelog updates.

Breaking changes

  • set_pulse_amplitude_it() renamed to set_pulse_amplitude_ir(). No back-compat alias.
  • fifo_bytes_to_int() shift direction fixed. Raw sample magnitudes will change whenever pulse_width != 0; downstream calibration may need re-tuning.

Other changes

  • check() now drains the full sensor FIFO per call (was returning after the first sample). Examples updated to use while sensor.available() instead of if sensor.available().
  • Version bumped to 0.5.0 in package.json, setup.py, and changelog.

Credits

Thanks to @sakluk (#26) for the original fixes.

sakluk and others added 6 commits May 14, 2026 22:48
- lines 581-584: shifted wrong direction
- line 685: wrong intendation
- lines 214, 403, 410: confusing function name
	modified:   max30102/__init__.py
1 renamed set_pulse_amplitude_it() to set_pulse_amplitude_ir()
2 changed bit shift direction in fifo_bytes_to_int() to return (value[0] & 0x3FFFF) >> (3 - self._pulse_width)
3 changed in check() the intendation to left for return True to let the function handle all samples in buffer
@n-elia n-elia self-assigned this May 18, 2026
@n-elia n-elia merged commit 324835d into main May 18, 2026
0 of 2 checks passed
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.

2 participants