# HG changeset patch
# User heinrichsweikamp
# Date 1401961980 -7200
# Node ID dc44aa6455490c946a49b999d1ca400ce11e1a9d
# Parent  bc7c022d2c744c55805d6165fc37127b34f05865
BUGFIX: wrong ppo2 recording parameter in short header

diff -r bc7c022d2c74 -r dc44aa645549 src/changelog.txt
--- a/src/changelog.txt	Tue Jun 03 13:20:44 2014 +0200
+++ b/src/changelog.txt	Thu Jun 05 11:53:00 2014 +0200
@@ -1,6 +1,7 @@
 New in 1.31:
 CHANGE: Minor language updates
 NEW: Show a Safety Stop if enabled (Menu "Deco Parameters")
+BUGFIX: dive profile recording issue in OC mode
 
 New in 1.30:
 NEW: Show event "Bailout" in internal logbook
diff -r bc7c022d2c74 -r dc44aa645549 src/ghostwriter.asm
--- a/src/ghostwriter.asm	Tue Jun 03 13:20:44 2014 +0200
+++ b/src/ghostwriter.asm	Thu Jun 05 11:53:00 2014 +0200
@@ -876,6 +876,8 @@
 	movlw	infolength_ppo2_sensors
     rcall	ghostwrite_byte_profile 	; WREG -> Profile in ext. flash
 	movlw	div_ppo2_sensors            ; Divisor ppO2
+    btfss   FLAG_ccr_mode               ; =1: CCR mode (Fixed ppO2 or Sensor) active
+    movlw   .0                          ; No ppO2 data in OC mode
     rcall	ghostwrite_byte_profile 	; WREG -> Profile in ext. flash
 
     movlw   .4                          ; Type