Skip to content

Commit 709b9ee

Browse files
committed
pybricks.common.BLE: Drop single-init assert.
In practice, we are allowing users to reinstantiate the hub. The question is whether we really should, but for now the simulation should be consistent with reality.
1 parent 17a5b83 commit 709b9ee

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

pybricks/common/pb_type_ble.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,6 @@ static MP_DEFINE_CONST_OBJ_TYPE(pb_type_BLE,
539539
* @throws ValueError If either parameter contains an out of range channel number.
540540
*/
541541
mp_obj_t pb_type_BLE_new(mp_obj_t broadcast_channel_in, mp_obj_t observe_channels_in) {
542-
// making the assumption that this is only called once before each pb_type_ble_start_cleanup()
543-
assert(observed_data == NULL);
544542

545543
// Validate channel arguments.
546544
if (broadcast_channel_in != mp_const_none && (mp_obj_get_int(broadcast_channel_in) < 0 || mp_obj_get_int(broadcast_channel_in) > UINT8_MAX)) {

0 commit comments

Comments
 (0)