Skip to content

Commit

Permalink
Merge pull request #325 from akenza-io/rbgFixBusylight
Browse files Browse the repository at this point in the history
RBG fix busylight
  • Loading branch information
J2thatsme authored Oct 30, 2024
2 parents 4e853a5 + 554edc7 commit a593a53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions types/plenom/kuandoBusylight/uplink.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ function consume(event) {
);
data.lastColorRGB = `${Bits.bitsToUnsigned(
bits.substr(128, 8),
)},${Bits.bitsToUnsigned(bits.substr(136, 8))},${Bits.bitsToUnsigned(
)},${Bits.bitsToUnsigned(
bits.substr(144, 8),
)}`;
)},${Bits.bitsToUnsigned(bits.substr(136, 8))}`;
data.timeOn = Bits.bitsToUnsigned(bits.substr(152, 8));
data.timeOff = Bits.bitsToUnsigned(bits.substr(160, 8));
lifecycle.swRevision = Bits.bitsToUnsigned(bits.substr(168, 8));
Expand Down
2 changes: 1 addition & 1 deletion types/plenom/kuandoBusylight/uplink.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe("Kuando busylight Uplink", () => {
assert.typeOf(value.data, "object");

assert.equal(value.topic, "default");
assert.equal(value.data.lastColorRGB, "255,255,0");
assert.equal(value.data.lastColorRGB, "255,0,255");
assert.equal(value.data.timeOn, 100);
assert.equal(value.data.timeOff, 2);

Expand Down

0 comments on commit a593a53

Please sign in to comment.