mirror of https://github.com/wb2osz/direwolf.git
Merge pull request #309 from df7cb/telemetry-python3
scripts/telemetry-toolkit/telem-volts.py: Port to python3
This commit is contained in:
commit
fe6cba2b0d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue