Mercurial > public > mk2
diff code_part1/OSTC_code_asm_part1/menu_reset.asm @ 361:88660a400338 64kByte Logbook
Updated 64K logbook to changeset 360.
author | JeanDo |
---|---|
date | Wed, 08 Jun 2011 01:37:14 +0200 |
parents | 544a96faa9f3 f49d6f0fc870 |
children | 6ee9c849ad92 |
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/menu_reset.asm Tue Jun 07 13:06:14 2011 +0200 +++ b/code_part1/OSTC_code_asm_part1/menu_reset.asm Wed Jun 08 01:37:14 2011 +0200 @@ -65,10 +65,16 @@ if HIGH(default) > 0 error CF#v(CFn) "8bit default too big: ", default endif - if HIGH(min) > 0 - error CF#v(CFn) "8bit min too big: ", min - endif - if HIGH(max) > 0 + if type & CF_NEG + if HIGH(-min) != 0 + error CF#v(CFn) "8bit negativ min too big: ", min + endif + else + if HIGH(min) != 0 + error CF#v(CFn) "8bit min too big: ", min + endif + endif + if HIGH(max) != 0 error CF#v(CFn) "8bit max too big: ", max endif if ((type)==CF_BOOL) && ( (default)>1 ) @@ -83,7 +89,7 @@ else local typeFlags typeFlags set type - if (min)>0 + if (min)!=0 typeFlags set type + CF_MIN endif if (max)>(min) @@ -163,7 +169,7 @@ CF_DEFAULT CF_CENTI, d'161', d'100', d'161' ; color_warn_ppo2_cbar ppO2 warn CF_DEFAULT CF_INT8, d'15', d'7', d'20' ; color_warn_celocity_mmin warn at xx m/min - CF_DEFAULT CF_SEC, d'42', d'0', d'240' ; time_correction_value_default Adds to Seconds on Midnight + CF_DEFAULT CF_SEC+CF_NEG,d'42', -d'120',d'120' ; time_correction_value_default Adds to Seconds on Midnight CF_DEFAULT CF_BOOL, d'0', 0, 0 ; CF#49 Show Altimeter in surface mode CF_DEFAULT CF_BOOL, d'0', 0, 0 ; CF50 Show Log-Marker CF_DEFAULT CF_BOOL, d'1', 0, 0 ; CF51 Show Stopwatch