Open birkler opened 2 years ago
Also, the expression inside doesn't make sense: KtaRoCo = KtaRoCo - 256;
will do nothing, since KtaRoCo is only 8 bits wide. Same goes for all the others. Did you mean to invert the value? KtaRoCo = 256 - KtaRoCo;
Since KtaRoCo (and others) are signed, you can just do if (KtaRoCo < 0)
E.g. gainEE is declared int8_t so it cannot hold values more than 127.