Added a wrapper function to execute the Fn of a device. Runs the ArgCheck too

This commit is contained in:
2026-01-01 18:11:05 +00:00
parent d4f89dd6f9
commit f3eaeb06c5
3 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ func (clerk *PeripheralDeviceClerk) RunDeviceFunction(ID uint8, f string, args [
}
// Execute the function
command, payload, err := cmd.Fn(cmd, args)
command, payload, err := cmd.Run(args)
if err != nil {
return err
}