From a152aeb419e38191c163fbca32680a50d8299113 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Tue, 12 Jan 2021 11:13:07 -0500 Subject: [PATCH] ... --- python/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/api.py b/python/api.py index 3e41876..5fef241 100644 --- a/python/api.py +++ b/python/api.py @@ -31,7 +31,7 @@ def readCapacity(bus): read = bus.read_word_data(address, 4) swapped = struct.unpack("H", read))[0] capacity = swapped/256 - print(voltage) + print(capacity) return capacity @app.route('/battery',methods = ['POST','GET'])