diff --git a/cmd_parser.c b/cmd_parser.c index afc1408..847e847 100644 --- a/cmd_parser.c +++ b/cmd_parser.c @@ -1043,7 +1043,12 @@ void execute_config(void) __banked config_done: // Start saving commands to cmd_history save_cmd = 1; +} + +void clear_command_history(void) __banked +{ for (cmd_history_ptr = 0; cmd_history_ptr < CMD_HISTORY_SIZE; cmd_history_ptr++) cmd_history[cmd_history_ptr] = 0; cmd_history_ptr = 0; -} + return; +} \ No newline at end of file diff --git a/cmd_parser.h b/cmd_parser.h index 09805bd..816d00b 100644 --- a/cmd_parser.h +++ b/cmd_parser.h @@ -12,4 +12,5 @@ uint8_t cmd_tokenize(void) __banked; void cmd_parser(void) __banked; void execute_config(void) __banked; void print_sw_version(void) __banked; +void clear_command_history(void) __banked; #endif diff --git a/html/config b/html/config deleted file mode 120000 index f1a6cc6..0000000 --- a/html/config +++ /dev/null @@ -1 +0,0 @@ -../config.txt \ No newline at end of file diff --git a/html/config.js b/html/config.js index 2d48021..0cb4bf1 100644 --- a/html/config.js +++ b/html/config.js @@ -49,7 +49,8 @@ async function fetchCmdLog() { console.log("CMD-Log: ", response); const t = await response.text(); return t; - } catch(error) { + } catch(err) { console.error("Error: ", err); + return ""; } } diff --git a/html/style.css b/html/style.css index 61a9b8a..581737a 100644 --- a/html/style.css +++ b/html/style.css @@ -6,8 +6,9 @@ ul { margin: 0; padding: 0; width: 12%; - height: 100%; + height: calc(100% - 50px); position: fixed; + top: 50px; overflow: auto; } diff --git a/html/system.html b/html/system.html index 57e6a74..eb74754 100644 --- a/html/system.html +++ b/html/system.html @@ -3,34 +3,70 @@