Ensure ADC and thermistor tables use the same oversampling

The current code assumes that values are directly comparable
This commit is contained in:
Yuri D'Elia 2022-05-15 00:35:59 +02:00
parent 2535d072c4
commit e87188e7e3
1 changed files with 4 additions and 0 deletions

View File

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