Skip to content

Commit

Permalink
Adds changes according to comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shgutte committed Nov 22, 2024
1 parent 69fdcc0 commit 19cf6c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/refrigerator-app/silabs/src/EventHandlerLibShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ CHIP_ERROR RefrigeratorDoorEventHandler(int argc, char ** argv)

RefrigeratorAlarmEventData * data = Platform::New<RefrigeratorAlarmEventData>();
data->eventId = Events::Notify::Id;
data->doorState = static_cast<AlarmBitmap>(atoi(argv[0]));
data->doorState = static_cast<AlarmBitmap>(value);

DeviceLayer::PlatformMgr().ScheduleWork(EventWorkerFunction, reinterpret_cast<intptr_t>(data));

Expand Down Expand Up @@ -172,7 +172,7 @@ void EventWorkerFunction(intptr_t context)
ChipLogError(Zcl, "Invalid Event Id %s, line %d", __func__, __LINE__);
break;
}
// Free memory
Platform::Delete(data);
}
// Free memory
Platform::Delete(data);
}

0 comments on commit 19cf6c5

Please sign in to comment.