From 32fe01f128bbdbbb471551352d026068f0189873 Mon Sep 17 00:00:00 2001 From: Ed Sandor Date: Wed, 30 Dec 2020 11:03:59 -0700 Subject: [PATCH] Round instead of floor height conversion --- owrx/kiss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/owrx/kiss.py b/owrx/kiss.py index b204704..21eebc2 100644 --- a/owrx/kiss.py +++ b/owrx/kiss.py @@ -64,10 +64,10 @@ IGLOGIN {callsign} {password} if "aprs_igate_height": try: height_m = float(pm["aprs_igate_height"]) - height_ft = int(height_m * FEET_PER_METER) + height_ft = round(height_m * FEET_PER_METER) height = "HEIGHT=" + str(height_ft) except: - logger.error("Cannot parse 'aprs_igate_height': " + str(pm["aprs_igate_height"])) + logger.error("Cannot parse 'aprs_igate_height', expected float: " + str(pm["aprs_igate_height"])) if((len(comment) > 0) and ((comment[0] != '"') or (comment[len(comment)-1] != '"'))): comment = "\"" + comment + "\""