Added a wrapper function to execute the Fn of a device. Runs the ArgCheck too
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user