Revision: 1227 Author: [email protected] Date: Thu Aug 20 16:24:14 2009 Log: fix overflow warning http://code.google.com/p/jallib/source/detail?r=1227
Modified: /trunk/include/external/co2/co2_t6603.jal ======================================= --- /trunk/include/external/co2/co2_t6603.jal Sat Nov 15 09:24:23 2008 +++ /trunk/include/external/co2/co2_t6603.jal Thu Aug 20 16:24:14 2009 @@ -1,7 +1,7 @@ -- Title: T6603_CO2, read values from GE/Telaire T6603 CO2 sensor. -- Author: Eur van Andel, [email protected] Copyright (c) 2008 --- Adapted-by: --- Compiler: =2.4h +-- Adapted-by: Albert Faber +-- Compiler: =2.4m -- -- This file is part of jallib (http://jallib.googlecode.com) -- Released under the ZLIB license (http://www.opensource.org/licenses/zlib-license.html) @@ -255,10 +255,10 @@ end loop elevation_ft = response[3] - elevation_ft = (elevation << 8) + response[4] -- feet above sealevel - elevation_ft = elevation_ft * 3048 -- meters * 10_000 - elevation_ft = elevation_ft / 10000 -- meters above sealevel - elevation_m = word(elevation_ft) -- generates warning + elevation_ft = (elevation << 8) + dword( response[4]) -- feet above sealevel + elevation_ft = elevation_ft * 3048 -- meters * 10_000 + elevation_ft = elevation_ft / 10000 -- meters above sealevel + elevation_m = word(elevation_ft) -- generates warning return elevation_m end function --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jallib?hl=en -~----------~----~----~----~------~----~------~--~---
