watchdog zuverlaessig

This commit is contained in:
Tristan Krause 2019-03-28 13:32:24 +01:00
parent 35e1c29e89
commit b4d10ed933
6 changed files with 191 additions and 191 deletions

View file

@ -87,12 +87,12 @@ void rqAdcDacStroke()
int16_t start = static_cast<int16_t>(usart.readInt());
int16_t delta = static_cast<int16_t>(usart.readInt());
int16_t count = static_cast<int16_t>(usart.readInt());
usart.writeByte(USART::MSG_OK);
count *= delta;
for(int16_t i = start; i != count; i += delta)
for(int16_t i = start; i < count; i += delta)
{
dac0.setValue(i);
wdt_reset();