fix rgb pixel service index

This commit is contained in:
hathach committed 2019-11-19 09:01:33 +07:00
1 parent 7770836fbe
commit c8398e1d6e
1 file changed
+1 -1
@@ -126,7 +126,7 @@ void BLEAdafruitRgbPixel::pixel_data_write_cb(uint16_t conn_hdl, BLECharacterist
memcpy(&index, data, 2);
uint8_t flag = data[2];
uint8_t* buffer = svc._neo->getPixels();
uint8_t* buffer = svc._neo->getPixels() + index;
memcpy(buffer, data+3, len-3);