Skip to content

Commit 7e9951d

Browse files
committed
bricks/stm32: Force exit on IDE stop button.
1 parent 87008fe commit 7e9951d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@
77
### Added
88
- Added support for `PBIO_PYBRICKS_COMMAND_REBOOT_TO_UPDATE_MODE` Pybricks Profile BLE command.
99

10+
### Changed
11+
- The Pybricks Code stop button will force the program to exit even if the user
12+
catches the `SystemExit` exception ([pybricks-micropython#117]).
13+
1014
### Fixed
1115
- Fixed connecting `Remote` on BOOST move hub ([support#793]).
1216

1317
### Removed
1418
- Removed `hub.system.reset()` method.
1519

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

1823
## [3.2.0b5] - 2022-11-11

lib/pbio/sys/command.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pbio_pybricks_error_t pbsys_command(const uint8_t *data, uint32_t size) {
2323

2424
switch (cmd) {
2525
case PBIO_PYBRICKS_COMMAND_STOP_USER_PROGRAM:
26-
pbsys_program_stop(false);
26+
pbsys_program_stop(true);
2727
return PBIO_PYBRICKS_ERROR_OK;
2828
case PBIO_PYBRICKS_COMMAND_START_USER_PROGRAM:
2929
return pbio_pybricks_error_from_pbio_error(pbsys_program_load_start_user_program());

0 commit comments

Comments
 (0)