Skip to content

Commit

Permalink
escape line returns
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Jul 3, 2024
1 parent 151eee7 commit b34aa51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/pixljs_alert/zero_ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def get_rpi_status():
for result in client.dict_stream(convert_datetime=True, filter=["TPV"]):
gpdsdout = "%.5s %.5s" % (result.get("lat", "n/a"), result.get("lon", "n/a"))
break
rpi_status = "Mic: %s\nVpn: %s\nBat: %s\nGps: %s" % (mic, vpn, battery, gpdsdout)
rpi_status = "Mic: %s\\nVpn: %s\\nBat: %s\\nGps: %s" % (mic, vpn, battery, gpdsdout)
return rpi_status.encode("iso-8859-1")


Expand Down

0 comments on commit b34aa51

Please sign in to comment.