From: lokilee73 Date: Wed, 27 Jun 2018 02:34:22 +0000 (+0900) Subject: Modify blinkm_led_stop_script X-Git-Tag: accepted/tizen/unified/20180628.130518^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F60%2F182660%2F1;p=platform%2Fadaptation%2Fsamsung_exynos%2Fdevice-manager-plugin-artik.git Modify blinkm_led_stop_script peripherial_i2c_byte_write() was removed, So replaced it with peripherial_i2c_write(). Change-Id: I4fa3388489e23fdedc7e2c95c23272e65c6a949a Signed-off-by: lokilee73 --- diff --git a/hw/led/led.c b/hw/led/led.c old mode 100644 new mode 100755 index 547c894..130a8e7 --- 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); } /**