Skip to content

Commit

Permalink
fix: SSL protocol did not receive initial state from desk.
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Oct 18, 2019
1 parent b666157 commit 9009d46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/constants/mixerProtocols/SSLsystemT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ export const SSLSystemT: IMixerProtocol = {
leadingZeros: false,
pingCommand: [emptyMixerMessage()],
pingTime: 0,
initializeCommands: [{ mixerMessage: "f1 04 00 80 00 00 {channel}", value: 0, type: '', min: 0, max: 1, zero: 0.75}],
initializeCommands: [{ mixerMessage: "f1 04 00 00 00 {channel}", value: 0, type: '', min: 0, max: 1, zero: 0.75}],
channelTypes: [{
channelTypeName: 'CH',
channelTypeColor: '#2f2f2f',
fromMixer: {
CHANNEL_FADER_LEVEL: [emptyMixerMessage()], //PgmChange 0 - ignores this command
CHANNEL_OUT_GAIN: [{ mixerMessage: 'f1 06 ff 80 00 00 {channel} {level}', value: 0, type: '', min: 0, max: 1, zero: 0.75}], //PgmChange 0 - ignores this command
CHANNEL_VU: [{ mixerMessage: "0", value: 0, type: 'f', min: 0, max: 1, zero: 0.75}], //PgmChange 0 - ignores this command
CHANNEL_FADER_LEVEL: [emptyMixerMessage()], // Handled by SSLMixerconnection
CHANNEL_OUT_GAIN: [emptyMixerMessage()], // Handled by SSLMixerconnection
CHANNEL_VU: [emptyMixerMessage()], // Not implemented in SSL Automation protocol yet
CHANNEL_NAME: [emptyMixerMessage()],
PFL: [emptyMixerMessage()],
AUX_SEND: [emptyMixerMessage()],
Expand Down
1 change: 1 addition & 0 deletions src/utils/SSLMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export class SSLMixerConnection {
for (let index=1; index<data.length; index++) {
if (data[index] === 241) {
buffers.push(data.slice(lastIndex, index - 1))
lastIndex = index
}
}
if (buffers.length === 0) {
Expand Down

0 comments on commit 9009d46

Please sign in to comment.