Mercurial > public > ostc4
comparison Discovery/Src/tMenuEditGasOC.c @ 773:2c243233c999
Menu shortcut for bailout / return to circuit when diving in CCR mode (mikeller)
| author | heinrichsweikamp |
|---|---|
| date | Wed, 10 May 2023 16:24:57 +0200 |
| parents | 39f48356049b |
| children | b7d93ff6b3b2 |
comparison
equal
deleted
inserted
replaced
| 772:b7e43b28bee1 | 773:2c243233c999 |
|---|---|
| 143 } | 143 } |
| 144 } | 144 } |
| 145 | 145 |
| 146 | 146 |
| 147 /* dive mode */ | 147 /* dive mode */ |
| 148 void openEdit_DiveSelectBetterGas(void) | 148 void openEdit_DiveSelectBetterGas(bool doBailout) |
| 149 { | 149 { |
| 150 uint8_t gasId, ccr; | 150 uint8_t gasId; |
| 151 | 151 if (doBailout) { |
| 152 gasId = actualBetterGasId(); | 152 gasId = actualBetterBailoutGasId(); |
| 153 ccr = 0; | 153 } else { |
| 154 gasId = actualBetterGasId(); | |
| 155 } | |
| 156 | |
| 157 uint8_t ccr = 0; | |
| 154 if(gasId>5) | 158 if(gasId>5) |
| 155 { | 159 { |
| 156 gasId -= 5; | 160 gasId -= 5; |
| 157 ccr = 1; | 161 ccr = 1; |
| 158 } | 162 } |
