Skip to content

Commit

Permalink
bricks/stm32: Force exit on IDE stop button.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Nov 14, 2022
1 parent 4d2a768 commit 016f3a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@
### Added
- Added support for `PBIO_PYBRICKS_COMMAND_REBOOT_TO_UPDATE_MODE` Pybricks Profile BLE command.

### Changed
- The Pybricks Code stop button will force the program to exit even if the user
catches the `SystemExit` exception ([pybricks-micropython#117]).

### Fixed
- Fixed connecting `Remote` on BOOST move hub ([support#793]).

### Removed
- Removed `hub.system.reset()` method.

[pybricks-micropython#117]: https://github.com/pybricks/pybricks-micropython/pull/117
[support#793]: https://github.com/pybricks/support/issues/793

## [3.2.0b5] - 2022-11-11
Expand Down
2 changes: 1 addition & 1 deletion lib/pbio/sys/command.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pbio_pybricks_error_t pbsys_command(const uint8_t *data, uint32_t size) {

switch (cmd) {
case PBIO_PYBRICKS_COMMAND_STOP_USER_PROGRAM:
pbsys_program_stop(false);
pbsys_program_stop(true);
return PBIO_PYBRICKS_ERROR_OK;
case PBIO_PYBRICKS_COMMAND_START_USER_PROGRAM:
return pbio_pybricks_error_from_pbio_error(pbsys_program_load_start_user_program());
Expand Down

0 comments on commit 016f3a9

Please sign in to comment.