echo befehl funktioniert

This commit is contained in:
Tristan Krause 2019-03-26 11:35:41 +01:00
parent 13e95264fb
commit fae65afe8b
8 changed files with 154 additions and 87 deletions

View file

@ -29,6 +29,15 @@ void initAll()
sw.setDirB(0xFF); // alle Eingang
adu.init();
usart.init();
}
void handleRequest()
{
const uint8_t req = usart.readByte();
uint8_t dummy = usart.readByte();
usart.writeByte(USART::MSG_OK);
usart.writeByte(dummy);
}
int main()
@ -43,7 +52,7 @@ int main()
while(1)
{
testAll();
handleRequest();
}
return 0;