python3
authorDebian Hamradio Maintainers <debian-hams@lists.debian.org>
Thu, 7 Jul 2022 14:48:19 +0000 (15:48 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 7 Jul 2022 14:48:19 +0000 (15:48 +0100)
Gbp-Pq: Name python3

scripts/telemetry-toolkit/telem-volts.py

index f52496834fdf5b2633262fc68773e6cdc4aa9dd4..34c59c4d3a3626290d6fd89b6a7cac363810757f 100644 (file)
@@ -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))