|
@@ -977,30 +977,40 @@ float Temperature::analog2temp(const int raw, const uint8_t e) {
|
977
|
977
|
return TEMP_AD595(raw);
|
978
|
978
|
#elif ENABLED(HEATER_0_USES_AD8495)
|
979
|
979
|
return TEMP_AD8495(raw);
|
|
980
|
+ #else
|
|
981
|
+ break;
|
980
|
982
|
#endif
|
981
|
983
|
case 1:
|
982
|
984
|
#if ENABLED(HEATER_1_USES_AD595)
|
983
|
985
|
return TEMP_AD595(raw);
|
984
|
986
|
#elif ENABLED(HEATER_1_USES_AD8495)
|
985
|
987
|
return TEMP_AD8495(raw);
|
|
988
|
+ #else
|
|
989
|
+ break;
|
986
|
990
|
#endif
|
987
|
991
|
case 2:
|
988
|
992
|
#if ENABLED(HEATER_2_USES_AD595)
|
989
|
993
|
return TEMP_AD595(raw);
|
990
|
994
|
#elif ENABLED(HEATER_2_USES_AD8495)
|
991
|
995
|
return TEMP_AD8495(raw);
|
|
996
|
+ #else
|
|
997
|
+ break;
|
992
|
998
|
#endif
|
993
|
999
|
case 3:
|
994
|
1000
|
#if ENABLED(HEATER_3_USES_AD595)
|
995
|
1001
|
return TEMP_AD595(raw);
|
996
|
1002
|
#elif ENABLED(HEATER_3_USES_AD8495)
|
997
|
1003
|
return TEMP_AD8495(raw);
|
|
1004
|
+ #else
|
|
1005
|
+ break;
|
998
|
1006
|
#endif
|
999
|
1007
|
case 4:
|
1000
|
1008
|
#if ENABLED(HEATER_4_USES_AD595)
|
1001
|
1009
|
return TEMP_AD595(raw);
|
1002
|
1010
|
#elif ENABLED(HEATER_4_USES_AD8495)
|
1003
|
1011
|
return TEMP_AD8495(raw);
|
|
1012
|
+ #else
|
|
1013
|
+ break;
|
1004
|
1014
|
#endif
|
1005
|
1015
|
default: break;
|
1006
|
1016
|
}
|