Bläddra i källkod

Fix analogReadResolution ADC1 cal

main
PaulStoffregen 9 år sedan
förälder
incheckning
2185bdc936
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. +6
    -1
      teensy3/analog.c

+ 6
- 1
teensy3/analog.c Visa fil

analog_right_shift = config - bits; analog_right_shift = config - bits;
if (config != analog_config_bits) { if (config != analog_config_bits) {
analog_config_bits = config; analog_config_bits = config;
if (calibrating) ADC0_SC3 = 0; // cancel cal
if (calibrating) {
ADC0_SC3 = 0; // cancel cal
#ifdef HAS_KINETIS_ADC1
ADC1_SC3 = 0;
#endif
}
analog_init(); analog_init();
} }
} }

Laddar…
Avbryt
Spara