Skip to content

Commit

Permalink
minor format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagohersan authored Feb 25, 2024
1 parent 3709e7a commit 6c7c989
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions firmware/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def cropmap(x, in_min, in_max, out_min, out_max):
ress = (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min
if x < in_min:
ress = out_min
elif x>in_max:
elif x > in_max:
ress = out_max
return ress

Expand Down Expand Up @@ -270,9 +270,4 @@ def sms_handler(evt):
gps.off()
i2c.close(2)






#assert rsp == b'HTTP/1.1 200 OK\r\ncontent-length: 0\r\n\r\n'

0 comments on commit 6c7c989

Please sign in to comment.