Skip to content

Commit

Permalink
pybricks.pupdevices: Fix TiltSensor not working.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Jul 30, 2023
1 parent 3ae1fb8 commit 04c7304
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@

### Fixed
- Improved external device detection speed ([support#1140]).
- Fixed Powered Up Tilt Sensor not working ([support#1189]).

[support#1054]: https://github.com/pybricks/support/issues/1054
[support#1140]: https://github.com/pybricks/support/issues/1140
[support#1189]: https://github.com/pybricks/support/issues/1189

## [3.3.0b8] - 2023-07-07

Expand Down
2 changes: 1 addition & 1 deletion pybricks/pupdevices/pb_type_pupdevices_tiltsensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ STATIC mp_obj_t pupdevices_TiltSensor_make_new(const mp_obj_type_t *type, size_t
PB_ARG_REQUIRED(port));

pupdevices_TiltSensor_obj_t *self = mp_obj_malloc(pupdevices_TiltSensor_obj_t, type);
pb_type_device_init_class(&self->device_base, port_in, PBDRV_LEGODEV_TYPE_ID_WEDO2_MOTION_SENSOR);
pb_type_device_init_class(&self->device_base, port_in, PBDRV_LEGODEV_TYPE_ID_WEDO2_TILT_SENSOR);
return MP_OBJ_FROM_PTR(self);
}

Expand Down

0 comments on commit 04c7304

Please sign in to comment.