~arthofer-thomas/flashlight-firmware/HW-HAL-bugfixes

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/fsm-wdt.c

  • Committer: Thomas Arthofer
  • Date: 2018-11-04 15:57:50 UTC
  • Revision ID: arthofer.thomas@gmail.com-20181104155750-fp62cpjwlh16f91r
Fix ADC interrupts and PWM frequency for PB4

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
    static uint8_t adc_trigger = 0;
135
135
    adc_trigger ++;
136
136
    if (0 == (adc_trigger & 3)) {
137
 
        ADCSRA |= (1 << ADSC) | (1 << ADIE);
138
 
        adcint_enable = 1;
 
137
        ADCSRA |= _BV(ADSC) | _BV(ADIE);
139
138
    }
140
139
    #endif
141
140
}