summaryrefslogtreecommitdiff
path: root/client/setup.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-06-02 17:22:48 +0200
committerlonkaars <loek@pipeframe.xyz>2022-06-02 17:22:48 +0200
commit14779cb187dac9ed4a0b6e7645e76e78587ad024 (patch)
treeae523d0216d0d9dce7155296bbe915a6f8f22c22 /client/setup.c
parent052be3db6fbb855be63e95291a270ba707796739 (diff)
ping working
Diffstat (limited to 'client/setup.c')
-rw-r--r--client/setup.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/client/setup.c b/client/setup.c
index 50395e0..fd37c13 100644
--- a/client/setup.c
+++ b/client/setup.c
@@ -17,17 +17,17 @@ uint8_t g_w2_endianness;
void w2_client_setup(int argc, char **argv) {
if (argc < 2) {
- printf("usage: %s <serial port>\n", argv[0]);
+ printf(W2_UI_CLI_USAGE, argv[0]);
exit(1);
}
if (w2_serial_open(argv[1]) == 0) {
- printf("serial port open fout\n");
+ printf(W2_UI_CLI_SERPORT_ERROR);
exit(1);
}
if ((g_w2_ui_win = initscr()) == NULL) {
- printf("ncurses initscr() failed\n");
+ printf(W2_UI_CLI_INITSCR_FAIL);
exit(1);
}
noecho();
@@ -38,7 +38,6 @@ void w2_client_setup(int argc, char **argv) {
w2_cmd_setup_handlers();
w2_send_info();
- w2_send_ping();
// check endianness
g_w2_endianness = *_ptest;