comparison 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
comparison
equal deleted inserted replaced
523:0a407cd48912 524:b33a8c1c72e5
1841 1841
1842 1842
1843 if(ppo2) 1843 if(ppo2)
1844 { 1844 {
1845 /* find first gas ID */ 1845 /* find first gas ID */
1846 for(index = 0; index < NUM_GAS; index++) 1846 for(index = 0; index < NUM_GASES; index++)
1847 { 1847 {
1848 if(pHeader->gasordil[index].note.ub.first) 1848 if(pHeader->gasordil[index].note.ub.first)
1849 break; 1849 break;
1850 } 1850 }
1851 if(index != NUM_GAS) 1851 if(index != NUM_GASES)
1852 { 1852 {
1853 gas.helium_percentage = pHeader->gasordil[index].helium_percentage; 1853 gas.helium_percentage = pHeader->gasordil[index].helium_percentage;
1854 gas.nitrogen_percentage = 100 - gas.helium_percentage - pHeader->gasordil[index].oxygen_percentage; 1854 gas.nitrogen_percentage = 100 - gas.helium_percentage - pHeader->gasordil[index].oxygen_percentage;
1855 } 1855 }
1856 } 1856 }