Skip to content

Commit a6e8619

Browse files
committed
fix 'uses extra pin' message
1 parent 8c45abb commit a6e8619

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ static void consider_instruction(introspect_t *state, uint16_t full_instruction,
431431
uint16_t wait_source = (full_instruction & 0x0060) >> 5;
432432
uint16_t wait_index = full_instruction & 0x001f;
433433
if (wait_source == 0 && (state->pins_we_use & (1 << wait_index)) == 0) { // GPIO
434-
mp_raise_ValueError_varg(translate("%q[%u] uses extra pin"), i);
434+
mp_raise_ValueError_varg(translate("%q[%u] uses extra pin"), what, i);
435435
}
436436
if (wait_source == 1) { // Input pin
437437
if (state->has_in_pin) {

0 commit comments

Comments
 (0)