File: python3

package info (click to toggle)
direwolf 1.6%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 4,720 kB
  • sloc: ansic: 53,861; perl: 170; cpp: 124; sh: 113; makefile: 41; python: 11
file content (14 lines) | stat: -rw-r--r-- 415 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- 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,
 # (multiply by expected value, divide by uncalibrated result.)
 #volts = volts * 4.98 / 4.889
 
-print "%.3f" % (volts)
+print("%.3f" % (volts))