diff --git a/lib/irsend.js b/lib/irsend.js index 16f964c..7057b52 100644 --- a/lib/irsend.js +++ b/lib/irsend.js @@ -26,6 +26,11 @@ IRSend.prototype.send_once = function(remote, code, callback) { return exec(command, callback); }; +IRSend.prototype.send_ccf_once = function(code, callback) { + var command = this._send_ccf_once(code); + return exec(command, callback); +}; + IRSend.prototype.send_start = function(remote, code, callback) { var command = this._send_start(remote, code); return exec(command, callback); @@ -72,6 +77,12 @@ IRSend.prototype._send_once = function(remote, code) { return this.command + ' SEND_ONCE "' + remote + '" "' + code + '"'; }; +IRSend.prototype._send_ccf_once = function(code) { + if (!code) code = ''; + + return this.command + ' SEND_CCF_ONCE "' + code + '"'; +}; + IRSend.prototype._send_start = function(remote, code) { if (!remote) remote = ''; if (!code) code = '';