Don't use \n in notification messages, the next line is truncated
This commit is contained in:
parent
0598e68d13
commit
4e7a4eed19
|
@ -202,7 +202,7 @@ def main():
|
||||||
battperc = 100.0 * wm.state['battery'] / cwiid.BATTERY_MAX
|
battperc = 100.0 * wm.state['battery'] / cwiid.BATTERY_MAX
|
||||||
print("Wiimote connected (battery: %d%%)" % battperc)
|
print("Wiimote connected (battery: %d%%)" % battperc)
|
||||||
xbmc.send_notification(PROGRAM,
|
xbmc.send_notification(PROGRAM,
|
||||||
"Wiimote connected\n(battery: %d%%)" % battperc)
|
"Wiimote connected (battery: %d%%)" % battperc)
|
||||||
tim.join()
|
tim.join()
|
||||||
# A timeout has occured (due to inactivity), close the connection to
|
# A timeout has occured (due to inactivity), close the connection to
|
||||||
# the Wiimote.
|
# the Wiimote.
|
||||||
|
|
Loading…
Reference in New Issue