Skip to content

Commit 8e94a91

Browse files
committed
Note something we should do
1 parent 241696f commit 8e94a91

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ports/raspberrypi/common-hal/rp2pio/StateMachine.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ bool rp2pio_statemachine_construct(rp2pio_statemachine_obj_t *self,
377377
}
378378
const mcu_pin_obj_t *pin = mcu_get_pin_by_number(pin_number);
379379
if (!pin) {
380+
// TODO: should be impossible, but free resources here anyway
380381
return false;
381382
}
382383
_pin_reference_count[pin_number]++;

0 commit comments

Comments
 (0)