Skip to content

Commit

Permalink
fix build error while not enable onOff cluster server
Browse files Browse the repository at this point in the history
  • Loading branch information
mideayanghui committed Jul 29, 2023
1 parent 2a681e3 commit 4951d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/clusters/mode-base-server/mode-base-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ CHIP_ERROR Instance::Init()
}
}
}

#ifdef EMBER_AF_PLUGIN_ON_OFF_SERVER
// OnMode with Power Up
// If the On/Off feature is supported and the On/Off cluster attribute StartUpOnOff is present, with a
// value of On (turn on at power up), then the CurrentMode attribute SHALL be set to the OnMode attribute
Expand Down Expand Up @@ -227,7 +227,7 @@ CHIP_ERROR Instance::Init()
}
}
}

#endif // EMBER_AF_PLUGIN_ON_OFF_SERVER
return CHIP_NO_ERROR;
}

Expand Down

0 comments on commit 4951d4d

Please sign in to comment.