Skip to content

Fix InCm initialization handler dispatch - #61

Open
spiesoft wants to merge 1 commit into
clvLabs:masterfrom
spiesoft:master
Open

spiesoft wants to merge 1 commit into
clvLabs:masterfrom
spiesoft:master

Conversation

@spiesoft

Copy link
Copy Markdown

I investigated a connection issue with an ATEM Mini Extreme using PyATEMMax 1.0b9.

The ATEM connection itself was working correctly: the switcher responded to HELLO, sent its initialization state, and the InCm ("Initialization Complete") command was received. However, ATEMMax.connected remained False.

The cause was a handler naming mismatch in ATEMCommandHandlers.py.

PyATEMMax resolves handlers by combining:

_HANDLER_PREFIX = "_handle"

with the command name. For InCm it therefore looks for:

_handleInCm

but the existing method was named:

_handle_InCm

As a result, _getHandler("InCm") returned _handleNOTIMPLEMENTED and setPayloadSent() was never called.

This pull request changes:

def _handle_InCm(self) -> None:

to:

def _handleInCm(self) -> None:

After this one-line change, the ATEM Mini Extreme connects correctly within a few seconds.

Tested successfully with:

  • initial connection
  • Bridge restart
  • ATEM power cycle
  • switching between different ATEM models/IP addresses
  • full laptop reboot

In all cases the connection was restored within a few seconds.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant