From 17b097b51da16b713a22d58f224171752361c84a Mon Sep 17 00:00:00 2001 From: Kris Bahnsen Date: Mon, 10 Apr 2023 11:12:21 -0700 Subject: [PATCH] idleinject: Don't fail if LED path is invalid Simply continue without using the LED. Signed-off-by: Kris Bahnsen --- src/idleinject.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idleinject.c b/src/idleinject.c index 2a26f8f..f22bfee 100644 --- a/src/idleinject.c +++ b/src/idleinject.c @@ -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; } }