From 954bfd051668d5d028275bb2b2efd0ffcb4f7932 Mon Sep 17 00:00:00 2001
From: Diego de Fauconval
 <diegodefauconval@wifi-student19-nat-inside-561.sri.ucl.ac.be>
Date: Thu, 10 Nov 2022 10:35:08 +0100
Subject: [PATCH] petit changement

---
 switch.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/switch.c b/switch.c
index e984600..77a3f50 100644
--- a/switch.c
+++ b/switch.c
@@ -1,7 +1,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdbool.h>
-#include <conio.h>
 
 #include <wiringPi.h>
 
@@ -27,7 +26,9 @@ int main(int argc, char const *argv[])
             delay(300);
         }
 
-        if ()
+        if (kbhit()) {
+            exit(EXIT_SUCCESS);
+        }
     }
 
     return 0;
-- 
GitLab