use GetAnyAsByteSlice whenever possible

This commit is contained in:
Joel Wetzell
2026-03-18 21:57:21 -05:00
parent 0763b4d720
commit 012c416432
13 changed files with 14 additions and 14 deletions

View File

@@ -156,10 +156,10 @@ func (sc *SerialClient) Start(ctx context.Context) error {
func (sc *SerialClient) Output(ctx context.Context, payload any) error {
payloadBytes, ok := common.GetAnyAs[[]byte](payload)
payloadBytes, ok := common.GetAnyAsByteSlice(payload)
if !ok {
return errors.New("serial.client can only ouptut bytes")
return errors.New("serial.client can only output bytes")
}
_, err := sc.port.Write(sc.Framer.Encode(payloadBytes))