map adc node to /tmp/devterm_adc

This commit is contained in:
cuu 2021-08-11 15:10:07 +08:00
parent 2e449853c3
commit ec9598f841
2 changed files with 3 additions and 1 deletions

View File

@ -119,7 +119,7 @@
#define KELVIN 1
#define CELSIUS 0
#define ADC_FILE_PAT "/sys/bus/iio/devices/iio:device*/in_voltage_raw"
#define ADC_FILE_PAT "/tmp/devterm_adc"
#define HEAT_TIME 100 // heat time + (0-f)*46

View File

@ -3,3 +3,5 @@
sleep 4
chmod 777 /tmp/DEVTERM_PRINTER_IN
chmod 777 /tmp/DEVTERM_PRINTER_OUT
ln -s /sys/bus/iio/devices/iio\:device*/in_voltage*_raw /tmp/devterm_adc