From 458d2098439180d0891f39129ae226f9d5219f67 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Tue, 18 Apr 2017 16:33:52 +0200 Subject: [PATCH] fix startup with disabled ADC --- atmega32u4/power48/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atmega32u4/power48/main.c b/atmega32u4/power48/main.c index 89ccd40..73c90ce 100644 --- a/atmega32u4/power48/main.c +++ b/atmega32u4/power48/main.c @@ -423,7 +423,10 @@ __attribute__((naked)) int main(void) { limit[3] |= eeprom_read_byte((uint8_t*)0x26); adc_enable = eeprom_read_byte((uint8_t*)0x28); output_enable = eeprom_read_byte((uint8_t*)0x29); - + switchoutput(0,-3); + switchoutput(1,-3); + switchoutput(2,-3); + switchoutput(3,-3); //Timer0 at ~122 Hz overflow for ADC control and buttons TCCR0B = (4 << CS00); -- 2.43.0