1,6 → 1,7 |
#include <inttypes.h> |
#include <avr/io.h> |
#include <avr/interrupt.h> |
#include <avr/wdt.h> |
#include "eeprom.h" |
#include "analog.h" |
#include "controlMixer.h" |
149,7 → 150,7 |
void delay_ms(uint16_t w) { |
uint16_t t_stop = setDelay(w); |
while (!checkDelay(t_stop)) |
; |
wdt_reset(); |
} |
|
// ----------------------------------------------------------------------- |
157,6 → 158,7 |
uint16_t t_stop; |
t_stop = setDelay(w); |
while (!checkDelay(t_stop)) { |
wdt_reset(); |
if (analogDataReady) { |
analog_update(); |
startAnalogConversionCycle(); |
165,7 → 167,7 |
if (stop) { |
// Wait for new samples to get prepared but do not restart AD conversion after that! |
// Caller MUST to that. |
while (!analogDataReady); |
if (!analogDataReady) wdt_reset(); |
} |
} |
|