Skip to content

Commit 3e33eab

Browse files
.github/workflows: Fix Code check Job.
Signed-off-by: Ramya Subramanyam <[email protected]>
1 parent 5e4ac94 commit 3e33eab

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

.github/workflows/code_checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55

66
jobs:
77
makers-devops:
8-
uses: Infineon/makers-devops/.github/workflows/code_checks.yml@fix-configs-path
8+
uses: Infineon/makers-devops/.github/workflows/code_checks.yml@main
99
with:
1010
project-yaml: config/project.yml
1111
user-yaml: config/user.yml

extras/makers-devops

libraries/WiFi/src/SecSocket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Socket {
4444
IPAddress remoteIP();
4545
uint16_t port();
4646

47-
static int hostByName(const char *aHostname, IPAddress& ip);
47+
static int hostByName(const char *aHostname, IPAddress &ip);
4848

4949
uint8_t status();
5050
cy_rslt_t getLastError();

libraries/WiFi/src/WiFi.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include <WiFi.h>
21
#include "SecSocket.h"
2+
#include <WiFi.h>
33

44
#define wcm_assert_raise(cy_ret, ret_code) if (cy_ret != CY_RSLT_SUCCESS) { \
55
_last_error = ret_code; \
@@ -42,8 +42,7 @@ int WiFiClass::begin(const char *ssid, const char *passphrase) {
4242
cy_wcm_ip_address_t ipaddress;
4343
cy_rslt_t ret = CY_WCM_EVENT_CONNECT_FAILED;
4444
uint8_t retries = 3; /* This number has been selected arbitrarily. */
45-
do
46-
{
45+
do {
4746
ret = cy_wcm_connect_ap(&connect_params, &ipaddress);
4847
} while (--retries < 0 && ret != CY_RSLT_SUCCESS);
4948
wcm_assert_raise(ret, WIFI_ERROR_STA_CONNECT_FAILED);
@@ -98,9 +97,11 @@ uint8_t WiFiClass::beginAP(const char *ssid, const char *passphrase, uint8_t cha
9897
cy_wcm_ap_config_t ap_conf;
9998
set_ap_params(&ap_conf, ssid, passphrase, channel);
10099

101-
/** TODO: This can be added to set_ap_params? Wait for the development of config function() */
100+
/** TODO: This can be added to set_ap_params? Wait for the development of config function()
101+
*/
102102
/* The AP requires some default IP settings */
103-
cy_wcm_set_ap_ip_setting(&(ap_conf.ip_settings), "192.168.0.1", "255.255.255.0", "192.168.0.1", CY_WCM_IP_VER_V4);
103+
cy_wcm_set_ap_ip_setting(&(ap_conf.ip_settings), "192.168.0.1", "255.255.255.0",
104+
"192.168.0.1", CY_WCM_IP_VER_V4);
104105

105106
cy_rslt_t ret = cy_wcm_start_ap(&ap_conf);
106107
wcm_assert_raise(ret, WIFI_ERROR_AP_LISTENING_FAILED);
@@ -155,7 +156,6 @@ wifi_error_t WiFiClass::getLastError() {
155156
return _last_error;
156157
}
157158

158-
159159
WiFiClass::WiFiClass() {
160160
}
161161

@@ -164,7 +164,7 @@ WiFiClass::~WiFiClass() {
164164

165165
wifi_error_t WiFiClass::wcm_init(cy_wcm_interface_t mode) {
166166
if (_status == WIFI_STATUS_UNINITED) {
167-
cy_wcm_config_t wcm_config = { .interface = mode };
167+
cy_wcm_config_t wcm_config = {.interface = mode};
168168
cy_rslt_t ret = cy_wcm_init(&wcm_config);
169169
wcm_assert_raise(ret, WIFI_ERROR_INIT_FAILED);
170170
_mode = mode;

libraries/WiFi/src/WiFi.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ class WiFiClass {
109109
IPAddress localIP();
110110

111111
/*
112-
* Get the gateway IP address.
113-
*
114-
* return: gateway IP address value
115-
*/
112+
* Get the gateway IP address.
113+
*
114+
* return: gateway IP address value
115+
*/
116116
IPAddress gatewayIP();
117117

118118
/**
@@ -134,7 +134,7 @@ class WiFiClass {
134134
*/
135135
uint8_t status();
136136

137-
int hostByName(const char *aHostname, IPAddress& ip);
137+
int hostByName(const char *aHostname, IPAddress &ip);
138138

139139
wifi_error_t getLastError();
140140

@@ -156,9 +156,9 @@ class WiFiClass {
156156
WiFiClass &operator=(const WiFiClass &) = delete;
157157

158158
/**
159-
* Initialize the WiFi connection manager.
160-
* It support both AP and STA interfaces.
161-
*/
159+
* Initialize the WiFi connection manager.
160+
* It support both AP and STA interfaces.
161+
*/
162162
wifi_error_t wcm_init(cy_wcm_interface_t mode);
163163
wifi_error_t wcm_assert_interface_mode(cy_wcm_interface_t mode);
164164

0 commit comments

Comments
 (0)