Skip to content

Commit ef7aae3

Browse files
committed
pbio/port: Fix absolute angle getter.
This was incorrectly refactored in cd05b52.
1 parent efff4fe commit ef7aae3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## [Unreleased]
66

7-
###
7+
### Added
88
- Added `pybricks.pupdevices.MarioHub` to control it as a peripheral. It
99
cannot be used as a standalone device since it cannot ne updated.
1010

@@ -14,9 +14,11 @@
1414

1515
### Fixed
1616
- Fixed EV3 light animation stopping when screen is used ([support#2599]).
17+
- Fixed Powered Up motors not resetting to the absolute value ([support#2620]).
1718

1819
[support#2599]: https://github.com/pybricks/support/issues/2599
1920
[support#2603]: https://github.com/pybricks/support/issues/2603
21+
[support#2620]: https://github.com/pybricks/support/issues/2620
2022

2123
## [4.0.0b7] - 2026-02-19
2224

lib/pbio/src/port.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ pbio_error_t pbio_port_get_angle(pbio_port_t *port, pbio_angle_t *angle) {
186186
*/
187187
pbio_error_t pbio_port_get_abs_angle(pbio_port_t *port, pbio_angle_t *angle) {
188188
if (port->lump_dev) {
189-
return pbio_port_lump_get_angle(port->lump_dev, angle, false);
189+
return pbio_port_lump_get_angle(port->lump_dev, angle, true);
190190
}
191191

192192
if (port->counter) {

0 commit comments

Comments
 (0)