pio: improve (slightly) error message for claim failure on PIO 1

This commit is contained in:
graham sanderson 2021-02-24 17:20:13 -06:00 committed by Graham Sanderson
parent 24e6668b35
commit 72307e99dc

View File

@ -24,7 +24,7 @@ void pio_sm_claim(PIO pio, uint sm) {
check_sm_param(sm);
uint which = pio_get_index(pio);
if (which) {
hw_claim_or_assert(&claimed, NUM_PIO_STATE_MACHINES + sm, "PIO 1 SM %d already claimed");
hw_claim_or_assert(&claimed, NUM_PIO_STATE_MACHINES + sm, "PIO 1 SM (%d - 4) already claimed");
} else {
hw_claim_or_assert(&claimed, sm, "PIO 0 SM %d already claimed");
}