testing channel 2

master
Paul Goeser 15 years ago
parent 6c88a493ba
commit b178bf2c71

@ -51,7 +51,7 @@ int __attribute__((noreturn)) main(void) {
hardinit(); hardinit();
softinit(); softinit();
muxer_set(0); muxer_set(1);
uint8_t active_sensor = 0; uint8_t active_sensor = 0;
@ -92,7 +92,7 @@ int __attribute__((noreturn)) main(void) {
SOFTTIMER(3,4000){ SOFTTIMER(3,4000){
static uint8_t toggle; static uint8_t toggle;
if(toggle){ if(toggle){
offset_measure_start(0); offset_measure_start(1);
toggle=0; toggle=0;
dbgLog("measuring offset\n"); dbgLog("measuring offset\n");
} else { } else {

@ -19,7 +19,7 @@ void muxer_set(uint8_t channel){
uint8_t inline muxer_channel_to_selectbits(uint8_t channel){ uint8_t inline muxer_channel_to_selectbits(uint8_t channel){
static uint8_t table[] = {2,0,1,3}; static uint8_t table[] = {2,1,0,3};
if(channel>=4){ if(channel>=4){
return 0; return 0;
} }

Loading…
Cancel
Save