Skip to content

Commit

Permalink
bugfix 'Text.Scroll' -> on
Browse files Browse the repository at this point in the history
  • Loading branch information
o0shojo0o committed Apr 7, 2021
1 parent 50d3b80 commit 3042b29
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

## Changelog

### 0.3.8 (2021-04-07)
* (o0shojo0o) bugfix 'Text.Scroll' -> on

### 0.3.7 (2021-03-27)
* (o0shojo0o) bugfix SleepMode brightness
* (o0shojo0o) bugfix Brightness
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-pixelit",
"version": "0.3.7",
"version": "0.3.8",
"description": "Pixel it Project",
"dependencies": {
"axios": "^0.21.1"
Expand Down
7 changes: 6 additions & 1 deletion pixelit/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,12 @@ module.exports = (red) => {
// Text Overrides
if (jsonObj.text) {
if (jsonObj.text.scrollText != undefined) {
jsonObj.text.scrollText = jsonObj.text.scrollText;
if (jsonObj.text.scrollText != 'auto'){
jsonObj.text.scrollText = tools.booleanConvert(jsonObj.text.scrollText);
}
else {
jsonObj.text.scrollText = jsonObj.text.scrollText;
}
}

if (jsonObj.text.scrollTextDelay) {
Expand Down

0 comments on commit 3042b29

Please sign in to comment.