]> jspc29.x-matter.uni-frankfurt.de Git - avr.git/commitdiff
fix startup with disabled ADC
authorJan Michel <j.michel@gsi.de>
Tue, 18 Apr 2017 14:33:52 +0000 (16:33 +0200)
committerJan Michel <j.michel@gsi.de>
Tue, 18 Apr 2017 14:33:52 +0000 (16:33 +0200)
atmega32u4/power48/main.c

index 89ccd40340dc8db9ffd2b432627279af6aa780f8..73c90ce2cdaa3986d54e824495a4aa392e091815 100644 (file)
@@ -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);