Skip to content

Commit

Permalink
chore: tidying
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Sep 17, 2019
1 parent b9a9afa commit 5555b26
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions src/index.ts
Expand Up @@ -9,7 +9,7 @@ import {
import { GetActionsList, HandleAction } from './actions'
import { AtemConfig, GetConfigFields } from './config'
import { ExecuteFeedback, FeedbackId, GetFeedbacksList } from './feedback'
import { GetAutoDetectModel, GetModelSpec, MODEL_AUTO_DETECT, ModelSpec, GetParsedModelSpec } from './models'
import { GetAutoDetectModel, GetModelSpec, GetParsedModelSpec, MODEL_AUTO_DETECT, ModelSpec } from './models'
import { GetPresetsList } from './presets'
import {
InitVariables,
Expand Down Expand Up @@ -74,12 +74,11 @@ class AtemInstance extends InstanceSkel<AtemConfig> {
public updateConfig(config: AtemConfig) {
this.config = config

this.initDone = false

this.model = GetModelSpec(config.modelID || MODEL_AUTO_DETECT) || GetAutoDetectModel()
this.debug('ATEM changed model: ' + this.model.id)

// Force clear the cached state
this.initDone = false
this.atemState = new AtemState()
this.updateCompanionBits()

Expand Down
2 changes: 1 addition & 1 deletion src/models.ts
@@ -1,4 +1,4 @@
import { Enums, AtemState } from 'atem-connection'
import { AtemState, Enums } from 'atem-connection'
import { DropdownChoice } from '../../../instance_skel_types'

export const MODEL_AUTO_DETECT = 0
Expand Down
2 changes: 1 addition & 1 deletion src/state.ts
Expand Up @@ -15,7 +15,7 @@ export function getUSK(
keyIndex: number | string
): UpstreamKeyer | undefined {
const me = getME(state, meIndex)
return me ? me.upstreamKeyers[keyIndex] : undefined
return me ? me.upstreamKeyers[keyIndex as number] : undefined
}
export function getDSK(state: AtemState, keyIndex: number | string): DownstreamKeyer | undefined {
return state.video.downstreamKeyers[keyIndex]
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Expand Up @@ -5,7 +5,7 @@
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": false,
"noImplicitAny": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
Expand Down

0 comments on commit 5555b26

Please sign in to comment.