|
@@ -538,26 +538,20 @@ const char* dcode_9_ADC_name(uint8_t i)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-#ifdef AMBIENT_THERMISTOR
|
|
|
-extern int current_temperature_raw_ambient;
|
|
|
-#endif
|
|
|
-
|
|
|
-#ifdef VOLT_PWR_PIN
|
|
|
-extern int current_voltage_raw_pwr;
|
|
|
-#endif
|
|
|
-
|
|
|
-#ifdef VOLT_BED_PIN
|
|
|
-extern int current_voltage_raw_bed;
|
|
|
-#endif
|
|
|
-
|
|
|
uint16_t dcode_9_ADC_val(uint8_t i)
|
|
|
{
|
|
|
switch (i)
|
|
|
{
|
|
|
+#ifdef SHOW_TEMP_ADC_VALUES
|
|
|
case 0: return current_temperature_raw[0];
|
|
|
+#endif
|
|
|
case 1: return 0;
|
|
|
+#ifdef SHOW_TEMP_ADC_VALUES
|
|
|
case 2: return current_temperature_bed_raw;
|
|
|
+#endif
|
|
|
+#ifdef PINDA_THERMISTOR
|
|
|
case 3: return current_temperature_raw_pinda;
|
|
|
+#endif
|
|
|
#ifdef VOLT_PWR_PIN
|
|
|
case 4: return current_voltage_raw_pwr;
|
|
|
#endif
|