Broken change
This commit is contained in:
+2
-2
@@ -35,10 +35,10 @@ def writeJSON():
|
||||
voltage = readVoltage(bus)
|
||||
if GPIO.input(6):
|
||||
# Power Adapter plugged in
|
||||
adapter = "in"
|
||||
adapter = "out"
|
||||
else:
|
||||
# Power Adapter NOT plugged in
|
||||
adapter = "out"
|
||||
adapter = "in"
|
||||
data['percentage'] = []
|
||||
data['percentage'].append({
|
||||
'level': capacity,
|
||||
|
||||
Reference in New Issue
Block a user