mirror of
https://github.com/stagehacks/Cue-View.git
synced 2026-08-08 15:23:38 +00:00
add runtime for transmitters that support it
This commit is contained in:
@@ -20,6 +20,7 @@ exports.config = {
|
||||
const blankChannel = {
|
||||
chan_name: '?',
|
||||
batt_bars: 255,
|
||||
batt_run_time: 65535,
|
||||
audio_gain: 0,
|
||||
audio_lvl: 0,
|
||||
rx_rf_lvl: 0,
|
||||
@@ -65,6 +66,8 @@ exports.data = function data(_device, message) {
|
||||
device.draw();
|
||||
} else if (msgParts[2] === 'BATT_BARS') {
|
||||
channel.batt_bars = Number(msgParts[3]);
|
||||
} else if (msgParts[2] === 'BATT_RUN_TIME') {
|
||||
channel.batt_run_time = Number(msgParts[3]);
|
||||
} else if (msgParts[2] === 'AUDIO_GAIN') {
|
||||
channel.audio_gain = Number(msgParts[3]) - 18;
|
||||
} else if (msgParts[2] === 'AUDIO_LVL') {
|
||||
|
||||
Reference in New Issue
Block a user