diff src/simulator.asm @ 598:e1f0f5e3d4e4

BUGFIX: Internal deco planner did not display results in imperial units
author heinrichsweikamp
date Mon, 30 Jul 2018 19:45:53 +0200
parents b455b31ce022
children ca4556fb60b9
line wrap: on
line diff
--- a/src/simulator.asm	Sun Jul 08 12:22:20 2018 +0200
+++ b/src/simulator.asm	Mon Jul 30 19:45:53 2018 +0200
@@ -266,6 +266,7 @@
 	TSTOSS	opt_units					; 0=Meters, 1=Feets
 	bra		deco_plan_show_nstd_stop_metric
 
+	movff	hi,up						; backup hi (minutes)
 	WIN_LEFT .85
 	movf	lo,W						; lo = m
 	mullw	.100						; PRODL:PRODH = mbar
@@ -296,6 +297,7 @@
 	output_16
 	bcf		leftbind
 	STRCAT_PRINT "ft "
+	movff	up,hi						; restore hi (minutes)
 	bra		deco_plan_show_nstd_stop_common
 
 deco_plan_show_nstd_stop_metric: