summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2021-02-01 19:24:57 -0800
committerGitHub <noreply@github.com>2021-02-01 19:24:57 -0800
commitdb7a9628023f115bcf7310e65261ae956e6139e5 (patch)
treeee57ec4c70902eac05509a7abd5698b9a6470c2f /shared-module
parent541436396514e492892ed0e0fe27a512e03e0a3f (diff)
parent0cf2df48c43f34d81dfb5fc466878716e3555b37 (diff)
Merge pull request #4112 from gamblor21/longint_busdevice_fix
Fixed for boards without longint
Diffstat (limited to 'shared-module')
-rw-r--r--shared-module/adafruit_bus_device/I2CDevice.c2
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();