summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonny Bergdahl <bergdahl@users.noreply.github.com>2021-02-27 00:07:30 +0100
committerGitHub <noreply@github.com>2021-02-27 00:07:30 +0100
commitf7eac46c7814a8c8cdc1f8841d3087fcf0a0632c (patch)
treee8e50641038da3bda18daca56dbf5e77c52db172
parent888a0c5f08a828e13db177559441e0ebe9c43ab8 (diff)
Update StateMachine.c
Changed woring to use max instead
-rw-r--r--ports/raspberrypi/bindings/rp2pio/StateMachine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/raspberrypi/bindings/rp2pio/StateMachine.c b/ports/raspberrypi/bindings/rp2pio/StateMachine.c
index 77f61acd0..b29e070e4 100644
--- a/ports/raspberrypi/bindings/rp2pio/StateMachine.c
+++ b/ports/raspberrypi/bindings/rp2pio/StateMachine.c
@@ -468,12 +468,12 @@ STATIC mp_obj_t rp2pio_statemachine_write_readinto(size_t n_args, const mp_obj_t
int in_stride_in_bytes = mp_binary_get_size('@', buf_in_info.typecode, NULL);
if (in_stride_in_bytes > 4) {
- mp_raise_ValueError(translate("In buffer elements must be 4 bytes long or less"));
+ mp_raise_ValueError(translate("In buffer elements must be max 4 bytes long"));
}
int out_stride_in_bytes = mp_binary_get_size('@', buf_out_info.typecode, NULL);
if (out_stride_in_bytes > 4) {
- mp_raise_ValueError(translate("Out buffer elements must be 4 bytes long or less"));
+ mp_raise_ValueError(translate("Out buffer elements must be max 4 bytes long"));
}
bool ok = common_hal_rp2pio_statemachine_write_readinto(self,