2026-02-14 08:53:17 +00:00
|
|
|
//go:build !linux
|
|
|
|
|
|
|
|
|
|
package tools
|
|
|
|
|
|
|
|
|
|
// scan is a stub for non-Linux platforms.
|
2026-02-18 19:48:23 +00:00
|
|
|
func (t *I2CTool) scan(args map[string]any) *ToolResult {
|
2026-02-14 08:53:17 +00:00
|
|
|
return ErrorResult("I2C is only supported on Linux")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// readDevice is a stub for non-Linux platforms.
|
2026-02-18 19:48:23 +00:00
|
|
|
func (t *I2CTool) readDevice(args map[string]any) *ToolResult {
|
2026-02-14 08:53:17 +00:00
|
|
|
return ErrorResult("I2C is only supported on Linux")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// writeDevice is a stub for non-Linux platforms.
|
2026-02-18 19:48:23 +00:00
|
|
|
func (t *I2CTool) writeDevice(args map[string]any) *ToolResult {
|
2026-02-14 08:53:17 +00:00
|
|
|
return ErrorResult("I2C is only supported on Linux")
|
|
|
|
|
}
|