CallDistanceTransceiver.py: fix an error message
[SaveMySugar/python3-savemysugar.git] / src / savemysugar / CallDistanceTransceiver.py
index 0ee4169..b89f2a8 100755 (executable)
@@ -191,7 +191,7 @@ class CallDistanceTransceiver(object):
             return
 
         # if the code made it up to here, something fishy is going on
-        logging.error("Unexpected distance: %.2f", ring_distance)
+        logging.error("Unexpected distance: %.2f", call_distance)
         logging.error("Check the transmitter and receiver parameters")
 
     def receive_loop(self):