This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
configuration:telephone-on-serial [2017/10/23 16:18] – fachet | configuration:telephone-on-serial [2017/10/23 16:20] – [SDK-Script] fachet | ||
---|---|---|---|
Line 97: | Line 97: | ||
if (ret != 0) { | if (ret != 0) { | ||
nb_syslog(" | nb_syslog(" | ||
- | exit(3); | + | exit(2); |
} | } | ||
fd = nb_serial_open(DEV); | fd = nb_serial_open(DEV); | ||
if (fd < 0) { | if (fd < 0) { | ||
nb_syslog(" | nb_syslog(" | ||
- | exit(4); | + | exit(3); |
} | } | ||
Line 116: | Line 116: | ||
nb_syslog(" | nb_syslog(" | ||
close(fd); | close(fd); | ||
- | exit(5); | + | exit(4); |
} | } | ||
+ | } | ||
} | } | ||
/* not reached */ | /* not reached */ |