Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
Minor formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
deadprogram committed Jan 19, 2016
1 parent 2b1fdf1 commit dff80df
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/devices/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ var hexRegex = /^[A-Fa-f0-9]{6}$/m;
*/
function hexToRgb(num) {
return {
red: (num >> 16 & 0xff),
green: (num >> 8 & 0xff),
blue: num & 0xff
red: ((num >> 16) & 0xff),
green: ((num >> 8) & 0xff),
blue: (num & 0xff)
};
}

Expand Down Expand Up @@ -199,8 +199,9 @@ module.exports = function custom(device) {
ys: 0x50,
dead: 0x50
};
if (opts !== undefined && opts.device !== undefined
&& opts.device === "bb8") {
if (opts !== undefined &&
opts.device !== undefined &&
opts.device === "bb8") {
presets = {
meth: 0x01,
xt: 0x20,
Expand Down

0 comments on commit dff80df

Please sign in to comment.