fix test_uart_loopback: 0 is a valid file descriptor

This commit is contained in:
Beat Küng
2017-01-03 14:44:45 +01:00
parent a9d3f0dc73
commit 000d965a5e
+1 -1
View File
@@ -76,7 +76,7 @@ int test_uart_loopback(int argc, char *argv[])
}
if (uart5 < 0) {
if (uart2 > 0) {
if (uart2 >= 0) {
close(uart2);
}