fix: refactor main menu, add dwc and octoprint commands

This commit is contained in:
th33xitus
2021-01-31 15:59:50 +01:00
parent fa8a9ff7ba
commit 26eecbc94b
2 changed files with 20 additions and 22 deletions

View File

@@ -45,8 +45,7 @@ kiauh_update_msg(){
### TODO: rework other menus to make use of the following functions too and make them more readable
do_action(){
clear
print_header
clear && print_header
### $1 is the action the user wants to fire
$1
print_msg && clear_msg
@@ -55,8 +54,7 @@ do_action(){
}
deny_action(){
clear
print_header
clear && print_header
print_unkown_cmd
print_msg && clear_msg
$1