From 585d0aecd23f24d627d96ba7cccd743b3383d12d Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Mon, 23 Apr 2018 13:05:25 +0100 Subject: [PATCH] Fix FFI signature h/t @nliviu Closes https://github.com/mongoose-os-libs/i2c/pull/4 PUBLISHED_FROM=876a4926b627911348d27fd9f9455db85c31c269 --- mjs_fs/api_i2c.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mjs_fs/api_i2c.js b/mjs_fs/api_i2c.js index 9a47643..6645853 100644 --- a/mjs_fs/api_i2c.js +++ b/mjs_fs/api_i2c.js @@ -9,7 +9,7 @@ let I2C = { // ## **`I2C.close(handle)`** // Close I2C handle. Return value: none. - close: ffi('void mgos_i2c_close(void *conn)'), + close: ffi('void mgos_i2c_close(void *)'), // ## **`I2C.write(handle, addr, buf, size, stop)`** // Send a byte array to I2C.