瀏覽代碼

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============================
 //===========================================================================