Files
compute-blade-agent/pkg/smartfanunit/smartfanunit.go
Cedric Kienzler 631ddfedd4 chore: update repository references from uptime-industries to computeblade-community (#70)
* chore: update repository references from uptime-industries to compute-blade-community

chore: update repository references from uptime-industries to compute-blade-community for consistency and clarity across all files
fix: update links in CHANGELOG.md and README.md to point to the new repository location for accurate documentation
fix: update Dockerfile and systemd service file to reflect the new repository URL for proper source tracking
refactor: change import paths in Go files to use the new repository name for correct package referencing

* chore: Add CODEOWNERS

* feat: add auto-labeling

---------

Co-authored-by: Cedric Kienzler <cedric@specht-labs.de>
2025-06-06 14:40:06 +02:00

23 lines
358 B
Go

package smartfanunit
import (
"github.com/compute-blade-community/compute-blade-agent/pkg/smartfanunit/proto"
)
const (
BaudRate = 115200
)
func MatchCmd(cmd proto.Command) func(any) bool {
return func(pktAny any) bool {
pkt, ok := pktAny.(proto.Packet)
if !ok {
return false
}
if pkt.Command == cmd {
return true
}
return false
}
}