Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/transport/DmxOutput.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import debug from 'debug';

/**
* Encapsulates the DMX-buffers to be used and handles sending of data to the
* driver.
Expand All @@ -17,6 +19,7 @@ export default class DmxOutput {
this.frameCount = 0;
this.frameInterval = 0;
this.isRunning = false;
this.debug = debug('fivetwelve:dmxoutput');

this.dmxBuffers = [];
this.dmxFrameCallbacks = [];
Expand Down Expand Up @@ -143,7 +146,7 @@ export default class DmxOutput {
}

if (frameDuration > frameInterval) {
console.error(`skipped frame ${this.frameCount}`);
this.debug(`skipped frame ${this.frameCount}`)
}

// the `frameDuration % frameInterval` makes sure that a skipped frame
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"dependencies": {
"array.from": "^0.2.0",
"color-convert": "^0.6.0",
"debug": "^2.6.8",
"object-assign": "^4.0.1",
"parse-color": "^1.0.0"
},
Expand Down