mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 21:05:30 +03:00
12 lines
236 B
JavaScript
12 lines
236 B
JavaScript
Array.prototype.push8 = function(val) {
|
|
this.push(0xFF & val);
|
|
return this;
|
|
};
|
|
Array.prototype.push16 = function(val) {
|
|
// low byte
|
|
this.push(0x00FF & val);
|
|
// high byte
|
|
this.push(val >> 8);
|
|
// chainable
|
|
return this;
|
|
};
|