Mercurial > public > ostc4
comparison Discovery/Src/data_central.c @ 149:e1d66bc78f9a FlipDisplay
Eliminate warnings
author | Ideenmodellierer |
---|---|
date | Sat, 02 Mar 2019 17:42:06 +0100 |
parents | cc9c18075e00 |
children | 2bb1db22b5f5 |
comparison
equal
deleted
inserted
replaced
148:ee744c7160ce | 149:e1d66bc78f9a |
---|---|
527 setActualGas(lifeData, gasId, setpoint_cbar); | 527 setActualGas(lifeData, gasId, setpoint_cbar); |
528 } | 528 } |
529 | 529 |
530 void setActualGasAir(SLifeData *lifeData) | 530 void setActualGasAir(SLifeData *lifeData) |
531 { | 531 { |
532 SSettings* pSettings = settingsGetPointer(); | |
533 uint8_t nitrogen; | 532 uint8_t nitrogen; |
534 nitrogen = 79; | 533 nitrogen = 79; |
535 lifeData->actualGas.GasIdInSettings = 0; | 534 lifeData->actualGas.GasIdInSettings = 0; |
536 lifeData->actualGas.nitrogen_percentage = nitrogen; | 535 lifeData->actualGas.nitrogen_percentage = nitrogen; |
537 lifeData->actualGas.helium_percentage =0; | 536 lifeData->actualGas.helium_percentage =0; |
782 } | 781 } |
783 | 782 |
784 | 783 |
785 void resetEvents(void) | 784 void resetEvents(void) |
786 { | 785 { |
787 SDiveState * pStateUsed; | 786 SDiveState * pStateUsed; |
788 if(stateUsed == stateRealGetPointer()) | 787 if(stateUsed == stateRealGetPointer()) |
788 { | |
789 pStateUsed = stateRealGetPointerWrite(); | 789 pStateUsed = stateRealGetPointerWrite(); |
790 } | |
790 else | 791 else |
792 { | |
791 pStateUsed = stateSimGetPointerWrite(); | 793 pStateUsed = stateSimGetPointerWrite(); |
792 | 794 } |
793 memset(&pStateUsed->events,0, sizeof(SEvents)); | 795 memset(&pStateUsed->events,0, sizeof(SEvents)); |
794 } | 796 } |
795 | 797 |
796 | 798 |
797 /* This is derived from crc32b but does table lookup. First the table | 799 /* This is derived from crc32b but does table lookup. First the table |
798 itself is calculated, if it has not yet been set up. | 800 itself is calculated, if it has not yet been set up. |