From d674319293b80d159f26a016716a30a206450f5e Mon Sep 17 00:00:00 2001 From: lokilee73 Date: Wed, 27 Jun 2018 11:30:36 +0900 Subject: [PATCH] Modify blinkm_led_stop_script peripherial_i2c_byte_write() was removed, So replaced it with peripherial_i2c_write(). Change-Id: If67f2b0fc03effbfd4e87d8c5a0737a581e1dfa6 Signed-off-by: lokilee73 --- hw/led/led.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 hw/led/led.c diff --git a/hw/led/led.c b/hw/led/led.c old mode 100644 new mode 100755 index 971316f..d7f0b39 --- a/hw/led/led.c +++ b/hw/led/led.c @@ -73,7 +73,10 @@ static uint8_t off_cmd[4] = { SET_CMD_CODE, 0x00, 0x00, 0x00 }; static void blinkm_led_stop_script(peripheral_i2c_h handle) { - peripheral_i2c_write_byte(handle, STOP_SCRIPT_CMD); + uint8_t data[1] = {STOP_SCRIPT_CMD}; + uint32_t length = 1; + + peripheral_i2c_write(handle, data, length); } /** -- 2.7.4