]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
displayd: Do not fail when debugging with /dev/null
authorMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 27 May 2010 11:20:58 +0000 (13:20 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Thu, 27 May 2010 11:20:58 +0000 (13:20 +0200)
src/displayd/displayd.c

index f7738c868d2a5be5574024d40adef0894558af08..157d8b73b5c61343ad599b4f26b7b74989778868 100644 (file)
@@ -403,7 +403,7 @@ int main(int argc, char *argv[])
        }
 
        sercom = uoled_sercom_init(tty, NULL);
-       if (strcmp(tty, "/dev/null") != 0 && sercom != NULL) {
+       if (strcmp(tty, "/dev/null") == 0 || sercom != NULL) {
        // :wq
                printf("displayd: init serial communication OK\n");
        } else {