diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2020-01-29 17:32:07 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-01-29 17:32:07 -0800 |
| commit | 5d24ade5c9f7b1771b5b914835bd7ededc6fcdc0 (patch) | |
| tree | 4563902d5ed0a0d7eae20c86e48970f52f5f5b54 /shared-bindings | |
| parent | 710c1985bad530f6c3d243d2cb8423168229d387 (diff) | |
Tweak error messages to reduce code size.
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/displayio/I2CDisplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-bindings/displayio/I2CDisplay.c b/shared-bindings/displayio/I2CDisplay.c index 4339d182f..9b863f656 100644 --- a/shared-bindings/displayio/I2CDisplay.c +++ b/shared-bindings/displayio/I2CDisplay.c @@ -118,7 +118,7 @@ MP_DEFINE_CONST_FUN_OBJ_1(displayio_i2cdisplay_reset_obj, displayio_i2cdisplay_o STATIC mp_obj_t displayio_i2cdisplay_obj_send(mp_obj_t self, mp_obj_t command_obj, mp_obj_t data_obj) { mp_int_t command_int = MP_OBJ_SMALL_INT_VALUE(command_obj); if (!MP_OBJ_IS_SMALL_INT(command_obj) || command_int > 255 || command_int < 0) { - mp_raise_ValueError(translate("Command must be 0-255")); + mp_raise_ValueError(translate("Command must be an int between 0 and 255")); } uint8_t command = command_int; mp_buffer_info_t bufinfo; |
