fix: add "v" to versions, add kiauh version to bottom left corner in main menu

This commit is contained in:
th33xitus
2020-12-21 21:00:27 +01:00
parent a6bfb30235
commit 1fd839bc7a
2 changed files with 33 additions and 26 deletions

View File

@@ -12,10 +12,16 @@ main_ui(){
echo -e "| 5) [Backup] | Mainsail: $MAINSAIL_STATUS|"
echo -e "| | Octoprint: $OCTOPRINT_STATUS|"
echo -e "| | |"
echo -e "| | KlipperScreen: $KLIPPERSCREEN_STATUS|"
echo -e "| ${cyan}$KIAUH_VER${default}| KlipperScreen: $KLIPPERSCREEN_STATUS|"
quit_footer
}
print_kiauh_version(){
cd ${SRCDIR}/kiauh
KIAUH_VER=$(git describe HEAD --always --tags | cut -d "-" -f 1,2)
KIAUH_VER="$(printf "%-20s" "$KIAUH_VER")"
}
main_menu(){
print_header
#print KIAUH update msg if update available
@@ -23,6 +29,7 @@ main_menu(){
kiauh_update_msg
fi
#check install status
print_kiauh_version
klipper_status
moonraker_status
dwc2_status