Mercurial > public > ostc4
diff Discovery/Src/logbook.c @ 524:b33a8c1c72e5
Minor: Removed duplicated definition of number of available gases
author | Ideenmodellierer |
---|---|
date | Sun, 13 Sep 2020 20:44:50 +0200 |
parents | 90d1f793dcf2 |
children | ae7f8333c900 |
line wrap: on
line diff
--- a/Discovery/Src/logbook.c Thu Sep 10 20:52:47 2020 +0200 +++ b/Discovery/Src/logbook.c Sun Sep 13 20:44:50 2020 +0200 @@ -1843,12 +1843,12 @@ if(ppo2) { /* find first gas ID */ - for(index = 0; index < NUM_GAS; index++) + for(index = 0; index < NUM_GASES; index++) { if(pHeader->gasordil[index].note.ub.first) break; } - if(index != NUM_GAS) + if(index != NUM_GASES) { gas.helium_percentage = pHeader->gasordil[index].helium_percentage; gas.nitrogen_percentage = 100 - gas.helium_percentage - pHeader->gasordil[index].oxygen_percentage;