Skip to content

Commit

Permalink
Merge pull request #2 from phillipivan/main
Browse files Browse the repository at this point in the history
add status and transport presets
  • Loading branch information
phillipivan authored Apr 29, 2024
2 parents b55f7c5 + 6732bc1 commit 7dde42b
Show file tree
Hide file tree
Showing 6 changed files with 822 additions and 159 deletions.
4 changes: 4 additions & 0 deletions companion/HELP.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ This turns the record function of the controlled device on/off.

## Version History

### Version 1.2.0
- Add transport & status presets
- Update companion-module-tools to 1.5.0

### Version 1.1.3
- Bug fixes & timer safety

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tascam-da-6400",
"version": "1.1.3",
"version": "1.2.0",
"main": "src/main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand All @@ -17,7 +17,7 @@
"@companion-module/base": "~1.7.0"
},
"devDependencies": {
"@companion-module/tools": "^1.4.2"
"@companion-module/tools": "^1.5.0"
},
"prettier": "@companion-module/tools/.prettierrc.json"
}
4 changes: 2 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ const { Regex } = require('@companion-module/base')

module.exports = {
async configUpdated(config) {
//let oldConfig = this.config
this.config = config
this.initTCP()
this.initVariables()
this.updateActions()
this.updateFeedbacks()
this.updateVariableDefinitions()
this.updatePresetsDefinitions()
},
// Return config fields for web config
getConfigFields() {
Expand All @@ -35,7 +35,7 @@ module.exports = {
label: 'Password',
width: 6,
default: 'DA-6400',
regex: '/^.{0,10}/g',
regex: '/^.{0,10}/',
tooltip: 'Password may be up to 10 characters in length',
},
]
Expand Down
6 changes: 6 additions & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const UpgradeScripts = require('./upgrades.js')
const UpdateActions = require('./actions.js')
const UpdateFeedbacks = require('./feedbacks.js')
const UpdateVariableDefinitions = require('./variables.js')
const UpdatePresetsDefinitions = require('./presets')
const config = require('./config.js')
const choices = require('./choices.js')
const tcp = require('./tcp.js')
Expand All @@ -24,6 +25,7 @@ class TASCAM_DA_6400 extends InstanceBase {
this.updateFeedbacks() // export feedbacks
this.updateVariableDefinitions() // export variable definitions
this.updateVariableValues()
this.updatePresetsDefinitions()
this.initTCP()
}
// When module gets deleted
Expand Down Expand Up @@ -104,6 +106,10 @@ class TASCAM_DA_6400 extends InstanceBase {
updateVariableDefinitions() {
UpdateVariableDefinitions(this)
}

updatePresetsDefinitions() {
UpdatePresetsDefinitions(this)
}
}

runEntrypoint(TASCAM_DA_6400, UpgradeScripts)
616 changes: 616 additions & 0 deletions src/presets.js

Large diffs are not rendered by default.

Loading

0 comments on commit 7dde42b

Please sign in to comment.