Skip to content

Commit 37a4ddc

Browse files
authored
Merge pull request #6 from phillipivan/main
better logging of tally/connected messages
2 parents cfcfba0 + 09902ea commit 37a4ddc

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

companion/HELP.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## ProBel SW-P-02 General Switcher Communication Protocol
22

3-
Implementation referenced to Document: SW-P-02 Issue 37. 07/09/2017.
3+
Implementation referenced to SW-P-02 Issue 37. 07/09/2017.
44

55
This module implements the basic router controls of SW P 02.
66

@@ -28,6 +28,9 @@ The Action Recorder will translate any recieved tally or connected messages into
2828

2929
## Version History
3030

31+
### Version 1.2.2
32+
- Better logging of recieved tally/connected messages
33+
3134
### Version 1.2.1
3235
- Improvements to message TX and RX
3336

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generic-swp02",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"main": "src/main.js",
55
"type": "module",
66
"scripts": {

src/processcmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ export function processCmd(chunk) {
4242
this.log('warn', `Tally. Unexpected Length. Expected: ${msgLength.connected} Recieved: ${reply.length}`)
4343
return undefined
4444
}
45-
this.log('info', `tally/connected msg recieved: ${reply}`)
4645
dstSrc = this.returnDstSrc(reply[1], reply[2], reply[3])
4746
if (dstSrc === undefined) {
4847
this.log('warn', 'returnDstSrc returned undefined, cannot process tally/connected response')
4948
return undefined
5049
}
5150
this.connections[dstSrc[0]] = dstSrc[1]
51+
this.log('info', `tally/connected msg recieved. Destination: ${dstSrc[0]} Source: ${dstSrc[1]}`)
5252
varList[`dst${dstSrc[0]}`] = this.connections[dstSrc[0]]
5353
this.checkFeedbacks('checkCrosspoint')
5454
this.setVariableValues(varList)

0 commit comments

Comments
 (0)