Mercurial > public > ostc4
comparison Discovery/Src/data_central.c @ 281:54d14bc2083c
Fix typos (There are still many...)
Limit stored NDL within 0 to 240 mins (Since it's 8bit UINT only) - I asume this is was a bug causing bad NDL readings in the logbook when downloaded with libdivecomputer
author | heinrichsweikamp |
---|---|
date | Wed, 01 May 2019 14:39:46 +0200 |
parents | 1303747b5ba2 |
children | 5ca177d2df5d |
comparison
equal
deleted
inserted
replaced
280:ae27d6185d51 | 281:54d14bc2083c |
---|---|
576 nitrogen -= oxygen; | 576 nitrogen -= oxygen; |
577 nitrogen -= helium; | 577 nitrogen -= helium; |
578 | 578 |
579 if((lifeData->actualGas.nitrogen_percentage != nitrogen) || (lifeData->actualGas.helium_percentage != helium)) | 579 if((lifeData->actualGas.nitrogen_percentage != nitrogen) || (lifeData->actualGas.helium_percentage != helium)) |
580 { | 580 { |
581 stateUsedWrite->events.manuelGasSet = 1; | 581 stateUsedWrite->events.manualGasSet = 1; |
582 stateUsedWrite->events.info_manuelGasSetHe = helium; | 582 stateUsedWrite->events.info_manualGasSetHe = helium; |
583 stateUsedWrite->events.info_manuelGasSetO2 = oxygen; | 583 stateUsedWrite->events.info_manualGasSetO2 = oxygen; |
584 } | 584 } |
585 if( lifeData->actualGas.setPoint_cbar != setpoint_cbar) | 585 if( lifeData->actualGas.setPoint_cbar != setpoint_cbar) |
586 { | 586 { |
587 stateUsedWrite->events.setpointChange = 1; | 587 stateUsedWrite->events.setpointChange = 1; |
588 stateUsedWrite->events.info_SetpointChange = setpoint_cbar; | 588 stateUsedWrite->events.info_SetpointChange = setpoint_cbar; |