test
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
char *uartDialog(int terminal_x, int terminal_y)
|
||||
void uartDialog(char *uart_adress, int terminal_x, int terminal_y)
|
||||
{
|
||||
char *prompt = "Please enter UART device address for RFID reader (probably /dev/ttyUSB0): ";
|
||||
char *header = "Enter UART Address";
|
||||
@@ -85,7 +85,8 @@ char *uartDialog(int terminal_x, int terminal_y)
|
||||
refresh();
|
||||
delwin(uartwin);
|
||||
refresh();
|
||||
return input;
|
||||
strcpy(uart_adress, input);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user