summaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorDan Halbert <halbert@adafruit.com>2021-03-02 17:11:45 -0500
committerGitHub <noreply@github.com>2021-03-02 17:11:45 -0500
commit15615effc2f8a9f991ace105f8a9f7bb51982059 (patch)
tree5cb6a37de75ace8c5fbc9c6bdb4f453229822cb1 /ports
parent0a58d451ad82375b261177cc63871655e257dfaf (diff)
parent3268330b3a54415817a315f862952dc2263a6291 (diff)
Merge pull request #4276 from bergdahl/patch-1
Update StateMachine.c
Diffstat (limited to 'ports')
-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..444e00ace 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 <= 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 <= 4 bytes long"));
}
bool ok = common_hal_rp2pio_statemachine_write_readinto(self,