From 01d8c7b4f81e2048649d2559f060c88af4cbe8a3 Mon Sep 17 00:00:00 2001 From: Bas Stottelaar Date: Sun, 27 May 2018 23:13:17 +0200 Subject: [PATCH] pkg: u8g2: adapt to new I2C api. --- pkg/u8g2/src/csrc/u8g2_riotos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/u8g2/src/csrc/u8g2_riotos.c b/pkg/u8g2/src/csrc/u8g2_riotos.c index 7c4245536d..20c75e8334 100644 --- a/pkg/u8g2/src/csrc/u8g2_riotos.c +++ b/pkg/u8g2/src/csrc/u8g2_riotos.c @@ -162,7 +162,6 @@ uint8_t u8x8_byte_riotos_hw_i2c(u8x8_t *u8g2, uint8_t msg, uint8_t arg_int, void index += arg_int; break; case U8X8_MSG_BYTE_INIT: - i2c_init_master(dev, I2C_SPEED_FAST); break; case U8X8_MSG_BYTE_SET_DC: break; @@ -171,7 +170,7 @@ uint8_t u8x8_byte_riotos_hw_i2c(u8x8_t *u8g2, uint8_t msg, uint8_t arg_int, void index = 0; break; case U8X8_MSG_BYTE_END_TRANSFER: - i2c_write_bytes(dev, u8x8_GetI2CAddress(u8g2), buffer, index); + i2c_write_bytes(dev, u8x8_GetI2CAddress(u8g2), buffer, index, 0); i2c_release(dev); break; default: