add support for timecode packets

This commit is contained in:
Joel Wetzell
2026-01-31 15:54:36 -06:00
parent f0d13f7744
commit e75a4524bb
3 changed files with 166 additions and 0 deletions
+2
View File
@@ -59,6 +59,8 @@ func Decode(bytes []byte) (ArtNetPacket, error) {
return NewArtPoll(bytes)
case OpDmx:
return NewArtDmx(bytes)
case OpTimeCode:
return NewArtTimeCode(bytes)
default:
return nil, fmt.Errorf("unhandled opcode: %#x", opCode)
}