diff options
| author | gamblor21 <mark.komus@gmail.com> | 2021-02-01 17:58:34 -0600 |
|---|---|---|
| committer | gamblor21 <mark.komus@gmail.com> | 2021-02-01 17:58:34 -0600 |
| commit | 0cf2df48c43f34d81dfb5fc466878716e3555b37 (patch) | |
| tree | 8aa5a673d167b99cd37d0e255d5ac04e0154ac40 /shared-module | |
| parent | 9bceb32de7091d6ebcf6cef8d7577059c246d0ce (diff) | |
Fixed for boards without longint
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/adafruit_bus_device/I2CDevice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/adafruit_bus_device/I2CDevice.c b/shared-module/adafruit_bus_device/I2CDevice.c index 792ab7183..6d80cf599 100644 --- a/shared-module/adafruit_bus_device/I2CDevice.c +++ b/shared-module/adafruit_bus_device/I2CDevice.c @@ -71,7 +71,7 @@ void common_hal_adafruit_bus_device_i2cdevice_probe_for_device(adafruit_bus_devi nlr_buf_t nlr; if (nlr_push(&nlr) == 0) { mp_load_method(self->i2c, MP_QSTR_writeto, dest); - dest[2] = mp_obj_new_int_from_ull(self->device_address); + dest[2] = MP_OBJ_NEW_SMALL_INT(self->device_address); dest[3] = write_buffer; mp_call_method_n_kw(2, 0, dest); nlr_pop(); |
