Skip to content

Commit

Permalink
* (bluefox) Formatting of the code
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Sep 3, 2024
1 parent cba8cfc commit 5dc1304
Show file tree
Hide file tree
Showing 4 changed files with 305 additions and 341 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ For example, `red = 0`, blue and green will stay unchanged.
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### **WORK IN PROGRESS**
* (bluefox) Formatting of the code

### 1.3.3 (2024-09-03)
* (bluefox) Just renamed some functions

Expand Down
16 changes: 8 additions & 8 deletions lib/devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ exports.LD382A = {
//power: ((data[13] & 0x01) ? false : true),
progNo: data[3],//mode
progOn: data[4] === 33, //modeRun
preogSpeed: data[5], //modeSpeed
progSpeed: data[5], //modeSpeed
red: data[6],
green: data[7],
blue: data[8],
Expand Down Expand Up @@ -148,15 +148,15 @@ exports.LD686 = {
if (data[0] !== 129) {
return [0, null];
}
//[129, 4, 35, 97, 33, 9, 11, 22, 33, 255, 3, 0, 0, 119]
// [129, 4, 35, 97, 33, 9, 11, 22, 33, 255, 3, 0, 0, 119]
return [14, {
//power: ((data[2] === 0x23) ? true : false),
// power: ((data[2] === 0x23) ? true : false),
on: (data[2] === 0x23),
//power: ((data[13] & 0x01) ? true : false),
//power: ((data[13] & 0x01) ? false : true),
progNo: data[3],//mode
progOn: data[4] === 33, //modeRun
preogSpeed: data[5], //modeSpeed
// power: ((data[13] & 0x01) ? true : false),
// power: ((data[13] & 0x01) ? false : true),
progNo: data[3], // mode
progOn: data[4] === 33, // modeRun
progSpeed: data[5], // modeSpeed
red: data[6],
green: data[7],
blue: data[8],
Expand Down
Loading

0 comments on commit 5dc1304

Please sign in to comment.