소스 검색

Ensure ADC and thermistor tables use the same oversampling

The current code assumes that values are directly comparable
Yuri D'Elia 3 년 전
부모
커밋
e87188e7e3
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      Firmware/temperature.cpp

+ 4 - 0
Firmware/temperature.cpp

@@ -43,6 +43,10 @@
 #include "Timer.h"
 #include "Configuration_prusa.h"
 
+#if (ADC_OVRSAMPL != OVERSAMPLENR)
+#error "ADC_OVRSAMPL oversampling must match OVERSAMPLENR"
+#endif
+
 //===========================================================================
 //=============================public variables============================
 //===========================================================================