Skip to content

Commit

Permalink
[Infineon] Code Cleanup and Fix for Build Clean (#22982)
Browse files Browse the repository at this point in the history
  • Loading branch information
dey-r authored and pull[bot] committed Jan 17, 2024
1 parent 7baef6a commit 3985096
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion examples/lock-app/infineon/psoc6/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#include "AppEvent.h"
#include "ButtonHandler.h"
#include "LEDWidget.h"
#include "qrcodegen.h"
#include <app-common/zap-generated/af-structs.h>
#include <app-common/zap-generated/attribute-id.h>
#include <app-common/zap-generated/attribute-type.h>
Expand Down
3 changes: 2 additions & 1 deletion scripts/build/build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ def Build(self):
def CleanOutputDirectories(self):
for builder in self.builders:
logging.warn('Cleaning %s', builder.output_dir)
shutil.rmtree(builder.output_dir)
if os.path.exists(builder.output_dir):
shutil.rmtree(builder.output_dir)

# any generated output was cleaned
self.completed_steps.discard(BuildSteps.GENERATED)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <lib/support/logging/CHIPLogging.h>

#include "DeviceNetworkProvisioningDelegateImpl.h"
#include "platform/Infineon/PSOC6/P6Utils.h"
#include <platform/Infineon/PSOC6/P6Utils.h>

namespace chip {
namespace DeviceLayer {
Expand Down
3 changes: 2 additions & 1 deletion src/platform/Infineon/PSOC6/DiagnosticDataProviderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ CHIP_ERROR DiagnosticDataProviderImpl::GetWiFiVersion(uint8_t & wiFiVersion)
whd_security_t security;
cy_rslt_t result = CY_RSLT_SUCCESS;

if (whd_wifi_get_ap_info(whd_ifs[CY_WCM_INTERFACE_TYPE_STA], &bss_info, &security) != CY_RSLT_SUCCESS)
result = whd_wifi_get_ap_info(whd_ifs[CY_WCM_INTERFACE_TYPE_STA], &bss_info, &security);
if (result != CY_RSLT_SUCCESS)
{
ChipLogError(DeviceLayer, "whd_wifi_get_ap_info failed: %d", (int) result);
SuccessOrExit(CHIP_ERROR_INTERNAL);
Expand Down

0 comments on commit 3985096

Please sign in to comment.