diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-06 15:31:36 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-06 15:31:36 +0200 |
commit | d69b8110517114d884c185c4dc8053858670c81f (patch) | |
tree | 8912cc5cb1b7ead5ce7469cd60356af189e926ce /client | |
parent | 9cbd1ed3bd8e59e24bd4db92b749213ac2c0c8f9 (diff) |
scal and spin done, removed lcal
Diffstat (limited to 'client')
-rw-r--r-- | client/serial_win32.c | 16 | ||||
-rw-r--r-- | client/strings.c | 1 | ||||
-rw-r--r-- | client/time_windows.c | 4 | ||||
-rw-r--r-- | client/ui.c | 6 |
4 files changed, 8 insertions, 19 deletions
diff --git a/client/serial_win32.c b/client/serial_win32.c index edc9db1..99f4160 100644 --- a/client/serial_win32.c +++ b/client/serial_win32.c @@ -2,20 +2,12 @@ #include "serial.h" -int w2_serial_read() { - return 0x00; -} +int w2_serial_read() { return 0x00; } -bool w2_serial_write(char *data, uint8_t length) { - return true; -} +bool w2_serial_write(char *data, uint8_t length) { return true; } -bool w2_serial_open(const char *port_name) { - return true; -} +bool w2_serial_open(const char *port_name) { return true; } -void w2_serial_close() { - return; -} +void w2_serial_close() { return; } #endif diff --git a/client/strings.c b/client/strings.c index b97d4b2..a119d9a 100644 --- a/client/strings.c +++ b/client/strings.c @@ -7,7 +7,6 @@ void w2_strings_modes_init() { g_w2_mode_strings[W2_M_DIRC] = W2_UI_MODE_DIRC; g_w2_mode_strings[W2_M_GRID] = W2_UI_MODE_GRID; g_w2_mode_strings[W2_M_HALT] = W2_UI_MODE_HALT; - g_w2_mode_strings[W2_M_LCAL] = W2_UI_MODE_LCAL; g_w2_mode_strings[W2_M_MAZE] = W2_UI_MODE_MAZE; g_w2_mode_strings[W2_M_SCAL] = W2_UI_MODE_SCAL; g_w2_mode_strings[W2_M_SPIN] = W2_UI_MODE_SPIN; diff --git a/client/time_windows.c b/client/time_windows.c index f9082d6..76d1879 100644 --- a/client/time_windows.c +++ b/client/time_windows.c @@ -2,9 +2,7 @@ #include "time.h" -unsigned long w2_get_time() { - return 0; -} +unsigned long w2_get_time() { return 0; } void w2_timer_start(w2_e_client_timers label) { g_w2_client_timers[label] = w2_get_time(); } diff --git a/client/ui.c b/client/ui.c index f636501..3835126 100644 --- a/client/ui.c +++ b/client/ui.c @@ -41,9 +41,9 @@ void w2_ui_paint_statusbar() { mvaddnstr(1, 0, temp, g_w2_ui_width); mvaddnstr(2, 0, temp, g_w2_ui_width); - g_w2_state.connected - ? sprintf(temp, W2_UI_CONN_STAT_CONNECTED ", %ims %s", g_w2_state.ping, W2_UI_CONN_STAT_PING) - : sprintf(temp, W2_UI_CONN_STAT_DISCONNECTED); + g_w2_state.connected ? sprintf(temp, W2_UI_CONN_STAT_CONNECTED ", %ims %s", g_w2_state.ping, + W2_UI_CONN_STAT_PING) + : sprintf(temp, W2_UI_CONN_STAT_DISCONNECTED); mvaddstr(0, 0, temp); sprintf(temp, "(%s)", g_w2_state.info.build_str); |