Skip to content

Commit

Permalink
Fix string literals and the vendor event trigger value.
Browse files Browse the repository at this point in the history
Change the vendor trigger kFillUpEventLoggingBuffer from
0xffffffff00000000 (-4294967296) to 0xffffffff13880000 (-3967287296).
  • Loading branch information
hsusid committed May 10, 2024
1 parent 26bc3c8 commit 22b6a36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/platform/infineon/cyw30739/SoftwareDiagnostics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ void OnSoftwareFaultEventHandler(const char * faultRecordString)

if (DeviceLayer::PlatformMgrImpl().IsCurrentTask())
{
softwareFault.name.SetValue(CharSpan::fromCharString("Matter"));
softwareFault.name.SetValue("Matter"_span);
}
else if (DeviceLayer::ThreadStackMgrImpl().IsCurrentTask())
{
softwareFault.name.SetValue(CharSpan::fromCharString("Thread"));
softwareFault.name.SetValue("Thread"_span);
}
else
{
softwareFault.name.SetValue(CharSpan::fromCharString("App"));
softwareFault.name.SetValue("App"_span);
}

softwareFault.faultRecording.SetValue(ByteSpan(Uint8::from_const_char(faultRecordString), strlen(faultRecordString)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace CYW30739 {
class TestEventTriggerHandler : public chip::TestEventTriggerHandler
{
public:
static constexpr uint64_t kFillUpEventLoggingBuffer = 0xffff'ffff'0000'0000;
static constexpr uint64_t kFillUpEventLoggingBuffer = 0xffff'ffff'1388'0000;

CHIP_ERROR HandleEventTrigger(uint64_t eventTrigger) override;

Expand Down

0 comments on commit 22b6a36

Please sign in to comment.