Skip to content

Commit c8398e1

Browse files
committed
fix rgb pixel service index
1 parent 7770836 commit c8398e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/BLEAdafruitService/src/services/BLEAdafruitRgbPixel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void BLEAdafruitRgbPixel::pixel_data_write_cb(uint16_t conn_hdl, BLECharacterist
126126
memcpy(&index, data, 2);
127127
uint8_t flag = data[2];
128128

129-
uint8_t* buffer = svc._neo->getPixels();
129+
uint8_t* buffer = svc._neo->getPixels() + index;
130130

131131
memcpy(buffer, data+3, len-3);
132132

0 commit comments

Comments
 (0)