Mercurial > public > hwos_code
diff src/menu_tree.asm @ 646:5b7fe7777425
3.16 release
author | heinrichs weikamp |
---|---|
date | Thu, 14 Oct 2021 12:03:24 +0200 |
parents | 8c1f1f334275 |
children | 357341239438 |
line wrap: on
line diff
--- a/src/menu_tree.asm Thu Jan 14 16:24:07 2021 +0100 +++ b/src/menu_tree.asm Thu Oct 14 12:03:24 2021 +0200 @@ -1338,7 +1338,11 @@ output_hex ; print C5, high byte movff C5+0,WREG ; get C5, low byte output_hex ; print C5, low byte - return ; done + btfss press_sensor_type ; =1: pressure sensor MS5837, =0: Pressure sensor MS5541 + return ; MS5541, done + PUTC "*" + return ; MS5837, done + ;----------------------------------------------------------------------------- @@ -1533,7 +1537,7 @@ do_menu_dispsets: IF _language_2!=none MENU_BEGIN tDispSets, .7 - MENU_OPT_INC tBright, oBrightness + MENU_CALL tBright, do_menu_Brightness MENU_OPT_INC tLayout, oLayout MENU_OPT_INC tUnits, oUnits MENU_OPT_INC tLanguage, oLanguage @@ -1543,7 +1547,7 @@ MENU_END ELSE MENU_BEGIN tDispSets, .6 - MENU_OPT_INC tBright, oBrightness + MENU_CALL tBright, do_menu_Brightness MENU_OPT_INC tLayout, oLayout MENU_OPT_INC tUnits, oUnits MENU_OPT_INC tFlip, oFlipScreen @@ -1552,7 +1556,17 @@ MENU_END ENDIF +;----------------------------------------------------------------------------- +; Settings Menu - 3rd Layer - Display Settings - Brightness +; +do_menu_Brightness: + MENU_BEGIN tBright, .3 + MENU_OPT_INC tDvMode, oBrightness_dive + MENU_OPT_INC tBrightsurface, oBrightness_surface + MENU_CALL tBack, do_return_dispsets_menu + MENU_END + ;----------------------------------------------------------------------------- ; Settings Menu - 3rd Layer - Display Settings - Color Schemes ;