Replace combinatorial decorators with capability registry (BC) (#28565)
This commit is contained in:
parent
33d2de24c1
commit
00967eb57e
101 changed files with 2416 additions and 44670 deletions
|
|
@ -60,7 +60,7 @@ func runMeter(cmd *cobra.Command, args []string) {
|
|||
flagUsed = true
|
||||
|
||||
for _, v := range config.Instances(meters) {
|
||||
if b, ok := v.(api.BatteryController); ok {
|
||||
if b, ok := api.Cap[api.BatteryController](v); ok {
|
||||
if err := b.SetBatteryMode(mode); err != nil {
|
||||
log.FATAL.Fatalln("set battery mode:", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue