diff --git a/main.c b/main.c
index e393aca407e6cdc7761f736c8cee75ec8a20aaf9..ce04d9493f36aca241bb10f1728f165c53f290eb 100644
--- a/main.c
+++ b/main.c
@@ -24,7 +24,7 @@ void read_cpu_temp() {
         
         //write pipe
         const char *pOne = "/tmp/pipeOne";
-        int vOne = open(pOne, O_WRONLY O_NONBLOCK);//todo: | O_NONBLOCK
+        int vOne = open(pOne, O_WRONLY | O_NONBLOCK);//todo: | O_NONBLOCK
         if (vOne == -1){
             perror("Failed to open pipe one in read_cpu_temp");
             return;