Das Wunder

This commit is contained in:
Tristan Krause 2019-04-02 16:19:42 +02:00
parent 9414322a19
commit 4d2ea6013c
8 changed files with 360 additions and 348 deletions

View file

@ -114,9 +114,12 @@ void rqAdcDacStroke()
uint16_t val_a = ((ADU*) &adu)->getValue(channel_a);
uint16_t val_b = ((ADU*) &adu)->getValue(channel_b);
usart.initTX();
usart.writeInt(val_a);
usart.writeInt(val_b);
usart.flush();
/*union doubleword
{
uint16_t word[2];
@ -138,5 +141,7 @@ void rqAdcDacStroke()
} while(ret != USART::MSG_OK);*/
}
usart.initTX();
usart.writeByte(USART::MSG_OK);
usart.flush();
}