-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed Window App Refactor #2
Fixed Window App Refactor #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like the cleanup is not complete. There is a lot of useless defines, methods that are never called, unnecessary wrapped that can cause code bloats... It definitively needs a second pass. I did not commented on everything that needs to be changed since there is still too much to fix.
@@ -22,6 +22,11 @@ | |||
struct AppEvent; | |||
typedef void (*EventHandler)(AppEvent *); | |||
|
|||
#include <app/clusters/window-covering-server/window-covering-server.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This files should not be modified. Please remove it from this PR.
@@ -0,0 +1,23 @@ | |||
# Copyright (c) 2020 Project CHIP Authors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this out of the efr32 folder and delete it. all path should now have only /examples_name/silabs/
@@ -20,5 +20,3 @@ silabs_sdk_target = get_label_info(":sdk", "label_no_toolchain") | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The complete SiWx917 folder should be deleted
// This IDL was generated automatically by ZAP. | ||
// It is for view/code review purposes only. | ||
|
||
struct ApplicationStruct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above
@@ -0,0 +1,9350 @@ | |||
{ | |||
"featureLevel": 96, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above
|
||
#include <platform/silabs/platformAbstraction/SilabsPlatform.h> | ||
|
||
#define EXAMPLE_VENDOR_ID 0xcafe |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed
AppTask::GetAppTask().PostEvent(&event); | ||
} | ||
|
||
void WindowManager::Timer::Start() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I'm not mistaken the timer is actually used twice. and we seems to only use a single timer. That doesn't seems to justify all of this wrapping. Please removed appropriately
} | ||
} | ||
|
||
void WindowManager::Button::Press() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed these method and add them directly in the handler
} | ||
} | ||
|
||
void WindowManager::Timer::IsrStart() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be removed
82d9d03
to
20b4176
Compare
e02f99c
to
4445bb5
Compare
4445bb5
to
17db866
Compare
WindowManager(); | ||
|
||
CHIP_ERROR Init(); | ||
CHIP_ERROR UpdateState(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This complete method should be deleted. It's duplication from the base App
New cleaned PR after solving merge issue.