1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Let sense hat single char not scroll as per docs

to close #266
This commit is contained in:
Dave Conway-Jones 2017-06-05 11:24:22 +01:00
parent fcdcbe4118
commit b858df4770
No known key found for this signature in database
GPG Key ID: 81B04231572A9A2D
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name" : "node-red-node-pi-sense-hat", "name" : "node-red-node-pi-sense-hat",
"version" : "0.0.14", "version" : "0.0.15",
"description" : "A Node-RED node to interact with a Raspberry Pi Sense HAT", "description" : "A Node-RED node to interact with a Raspberry Pi Sense HAT",
"repository" : { "repository" : {
"type":"git", "type":"git",

View File

@ -151,7 +151,7 @@ def process_command(data):
speed = 0.1 speed = 0.1
s = data.split(':',1) s = data.split(':',1)
if len(s) == 2: if len(s) == 2:
data = s[1] data = s[1][0:-1]
if len(s[0]) > 0: if len(s[0]) > 0:
c = s[0].split(",") c = s[0].split(",")
if len(c) == 1: if len(c) == 1: