1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/apa102: fix typos

This commit is contained in:
Kaspar Schleiser 2019-10-23 21:20:29 +02:00
parent ec47a7542a
commit 5c4bf445bb

View File

@ -65,7 +65,7 @@ void apa102_load_rgba(const apa102_t *dev, const color_rgba_t vals[])
for (int i = 0; i < dev->led_numof; i++) {
uint32_t data = HEAD;
/* we scale the 8-bit alpha value to a 5-bit value by cutting off the
* 3 leas significant bits */
* 3 least significant bits */
data |= (((uint32_t)vals[i].alpha << BRIGHT_SHIFT) & BRIGHT);
data |= ((uint32_t)vals[i].color.b << BLUE_SHIFT);
data |= ((uint32_t)vals[i].color.g << GREEN_SHIFT);