renumbered neopixel to make more sense in decadic

This commit is contained in:
2018-05-08 14:41:49 +02:00
parent 6bfa40ce9f
commit b40825a75f
3 changed files with 13 additions and 9 deletions
+8 -2
View File
@@ -102,13 +102,19 @@ static error_t UUSART_handleRequest(Unit *unit, TF_ID frame_id, uint8_t command,
uint32_t len;
const uint8_t *pld;
switch (command) {
/** Write bytes to the USART. Payload consists of the data to send. Waits for completion. */
/**
* Write bytes to the USART, without waiting for completion.
* May wait until there is space in the DMA buffer.
*/
case CMD_WRITE:
pld = pp_tail(pp, &len);
TRY(UU_USART_Write(unit, pld, len));
return E_SUCCESS;
/** Write bytes to the USART, without waiting for completion. */
/**
* Write bytes to the USART. Payload consists of the data to send.
* Waits for completion.
*/
case CMD_WRITE_SYNC:
pld = pp_tail(pp, &len);
TRY(UU_USART_WriteSync(unit, pld, len));