瀏覽代碼

Fix analogReadResolution ADC1 cal

main
PaulStoffregen 9 年之前
父節點
當前提交
2185bdc936
共有 1 個檔案被更改,包括 6 行新增1 行删除
  1. +6
    -1
      teensy3/analog.c

+ 6
- 1
teensy3/analog.c 查看文件

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();
} }
} }

Loading…
取消
儲存