File tree 1 file changed +4
-4
lines changed
src/main/java/com/heterodain/mining/powercontroller/task
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -75,22 +75,22 @@ public void init() throws IOException {
75
75
while (true ) {
76
76
try {
77
77
Thread .sleep (3000 );
78
- pcPowerSw = gpio .provisionDigitalOutputPin (RaspiPin .GPIO_00 , "PC_POWER_SW" , PinState .LOW );
78
+ pcPowerSw = gpio .provisionDigitalOutputPin (RaspiPin .GPIO_25 , "PC_POWER_SW" , PinState .LOW );
79
79
pcPowerSw .setShutdownOptions (true , PinState .LOW );
80
80
break ;
81
81
} catch (Exception e ) {
82
- log .warn ("GPIO17(0 )の初期化に失敗しました。リトライします。" , e );
82
+ log .warn ("GPIO26(25 )の初期化に失敗しました。リトライします。" , e );
83
83
}
84
84
}
85
85
86
86
while (true ) {
87
87
try {
88
88
Thread .sleep (3000 );
89
- pcPowerStatus = gpio .provisionDigitalInputPin (RaspiPin .GPIO_27 , "PC_POWER_STATUS" ,
89
+ pcPowerStatus = gpio .provisionDigitalInputPin (RaspiPin .GPIO_00 , "PC_POWER_STATUS" ,
90
90
PinPullResistance .PULL_DOWN );
91
91
break ;
92
92
} catch (Exception e ) {
93
- log .warn ("GPIO26(27 )の初期化に失敗しました。リトライします。" , e );
93
+ log .warn ("GPIO17(0 )の初期化に失敗しました。リトライします。" , e );
94
94
}
95
95
}
96
96
You can’t perform that action at this time.
0 commit comments