Skip to content

Instantly share code, notes, and snippets.

View Be-ing's full-sized avatar
🇵🇸
Free Palestine

Be Be-ing

🇵🇸
Free Palestine
View GitHub Profile
Running with expanded trace output on.
-- The CXX compiler identification is AppleClang 12.0.5.12050022
-- The C compiler identification is AppleClang 12.0.5.12050022
-- The ASM compiler identification is Clang
-- Found assembler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
HIDPacket.prototype.createOutput = function (group, name, offset, pack,
callback, trigger) {
this.addOutput(group, name, offset, pack);
var field = this.getFieldByOffset(offset,pack);
if (callback === undefined || callback === null) {
callback = function (value, group, control) {
field.value = value << field.bit_offset;
field.toggle = value << field.bit_offset;
field.packet.send();
}