reduce ISR time from 4.5us to 1.6us

master
Eggert Jung 3 years ago
parent 53ceb7a0ba
commit 59fa66e164

@ -91,7 +91,8 @@ void do_spule(){
}
ISR(TIMER1_OVF_vect) {
if(ioHelperReadBit(outStates, MOTOR_TRANS_DIR)){
//if(ioHelperReadBit(outStates, MOTOR_TRANS_DIR)){
if(PORTB & (1<<6)){
spule_trans_pos -= 1;
}
else{