From a30f90956b81feeb65007828c27617df1ce9f052 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Sun, 3 Jan 2021 22:45:36 +0100 Subject: [PATCH] scripts/telemetry-toolkit/telem-volts.py: Port to python3 --- scripts/telemetry-toolkit/telem-volts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/telemetry-toolkit/telem-volts.py b/scripts/telemetry-toolkit/telem-volts.py index f524968..34c59c4 100644 --- a/scripts/telemetry-toolkit/telem-volts.py +++ b/scripts/telemetry-toolkit/telem-volts.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Part of Dire Wolf APRS Telemetry Toolkit, WB2OSZ, 2015 @@ -33,4 +33,4 @@ volts = adc.readADCSingleEnded(0, gain, sps) * 0.001 * (r1+r2) / r2 # (multiply by expected value, divide by uncalibrated result.) #volts = volts * 4.98 / 4.889 -print "%.3f" % (volts) +print("%.3f" % (volts))