mirror of
https://github.com/compute-blade-community/compute-blade-agent.git
synced 2026-04-16 15:35:42 +02:00
* 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>
23 lines
358 B
Go
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
|
|
}
|
|
}
|