mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2024-11-23 22:11:53 +02:00
swuart-chat/chat.c (main): use perror if swuart_open fails
This commit is contained in:
parent
5f3828f710
commit
0b81ffabd1
@ -81,7 +81,7 @@ int main(int argc, char **argv)
|
|||||||
atexit(at_exit);
|
atexit(at_exit);
|
||||||
raw();
|
raw();
|
||||||
if (swuart_open(TX, RX, 38400) < 0) {
|
if (swuart_open(TX, RX, 38400) < 0) {
|
||||||
fprintf(stderr, "swuart_open failed\n");
|
perror("swuart_open");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user