Skip to content

Commit

Permalink
Adjust priority of Shutdown event in basic cluster (#13001)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored and pull[bot] committed Apr 1, 2022
1 parent fa4645e commit 5536888
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/clusters/basic/basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class PlatformMgrDelegate : public DeviceLayer::PlatformManagerDelegate
Events::ShutDown::Type event;
EventNumber eventNumber;

if (CHIP_NO_ERROR != LogEvent(event, endpoint, eventNumber))
if (CHIP_NO_ERROR != LogEvent(event, endpoint, eventNumber, EventOptions::Type::kUrgent))
{
ChipLogError(Zcl, "PlatformMgrDelegate: Failed to record ShutDown event");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ limitations under the License.
<description>The StartUp event SHALL be emitted by a Node as soon as reasonable after completing a boot or reboot process.</description>
<field id="0" name="SoftwareVersion" type="INT32U"/>
</event>
<event side="server" code="0x01" name="ShutDown" priority="info" optional="false">
<event side="server" code="0x01" name="ShutDown" priority="critical" optional="false">
<description>The ShutDown event SHOULD be emitted by a Node prior to any orderly shutdown sequence on a best-effort basis.</description>
</event>
<event side="server" code="0x02" name="Leave" priority="info" optional="false">
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5536888

Please sign in to comment.