From 0b9634dd8a18814e2744c4e0a5cee6dc4854d55e Mon Sep 17 00:00:00 2001 From: "l.lefebvre" Date: Tue, 28 Jan 2014 17:55:11 +0100 Subject: [PATCH] Fix case of boolean string in boolean example I try "boolean_client.py" with arduino Yun "Spacebrew Boolean" example program. I have some issues since arduino spacebrew library wait for "true" or "false" string at lowercase. Python use "True" and "False" string for boolean. This commit fix it. --- examples/boolean_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/boolean_client.py b/examples/boolean_client.py index 499fcee..cefc4a5 100644 --- a/examples/boolean_client.py +++ b/examples/boolean_client.py @@ -75,7 +75,7 @@ def handleBoolean(value): if (c == 10 or c == 13): local_state = not local_state - brew.publish('local state', local_state) + brew.publish('local state', str(local_state).lower()) stdscr.addstr(pos_local, pos_state, (str(local_state) + " ").encode(code)) stdscr.refresh()