Skip to content

Commit

Permalink
idleinject: Don't fail if LED path is invalid
Browse files Browse the repository at this point in the history
Simply continue without using the LED.

Signed-off-by: Kris Bahnsen <[email protected]>
  • Loading branch information
ts-kris committed Apr 10, 2023
1 parent d44b50b commit 17b097b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/idleinject.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ int main(int argc, char **argv) {
if(opt_led) {
led = fopen(opt_led, "r+");
if(led == NULL) {
perror("Couldn't open LED");
return 1;
perror("Couldn't open LED, continuing without LED support");
opt_led = 0;
}
}

Expand Down

0 comments on commit 17b097b

Please sign in to comment.