This commit is contained in:
LAX18 Development
2021-01-12 11:13:07 -05:00
parent ef607b8d7a
commit 71a86f5171
+1 -1
View File
@@ -31,7 +31,7 @@ def readCapacity(bus):
read = bus.read_word_data(address, 4)
swapped = struct.unpack("<H", struct.pack(">H", read))[0]
capacity = swapped/256
print(voltage)
print(capacity)
return capacity
@app.route('/battery',methods = ['POST','GET'])