Changeset 31994


Ignore:
Timestamp:
May 9, 2017, 6:03:48 AM (2 months ago)
Author:
brainslayer
Message:

swapped in 4.9

Location:
src/router/rc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/router/rc/init.c

    r31728 r31994  
    1 
     1 
    22#include <stdio.h>
    33#include <stdlib.h>
  • src/router/rc/watchdog.c

    r31590 r31994  
    135135                        int cpu;
    136136                        FILE *tempfp;
    137                         tempfp = fopen("/sys/class/hwmon/hwmon1/temp1_input", "rb");
     137                        tempfp = fopen("/sys/class/hwmon/hwmon0/temp1_input", "rb");
    138138                        if (tempfp) {
    139139                                fscanf(tempfp, "%d", &cpu);
     
    146146                                target *= 255;
    147147                                target /= 10000;
    148                                 sysprintf("/bin/echo %d > /sys/class/hwmon/hwmon0/pwm1", target);
     148                                sysprintf("/bin/echo %d > /sys/class/hwmon/hwmon1/pwm1", target);
    149149                        }
    150150
Note: See TracChangeset for help on using the changeset viewer.