8000 Fix for name clash SUCCESS / FAILURE · Networking-for-Arduino/ESPHost@1f01ca4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1f01ca4

Browse files
committed
Fix for name clash SUCCESS / FAILURE
Former-commit-id: 8b30cb159c6b05620077c29c62a8ee07dece23e0
1 parent eee427d commit 1f01ca4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/CCtrlWrapper.h

Lines changed: 4 additions & 4 deletions
< 8000 div class="border position-relative rounded-bottom-2">
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ using namespace std;
7474
#define STATUS_LENGTH 14
7575
#define VENDOR_OUI_BUF 3
7676

77-
#define SUCCESS 0
78-
#define FAILURE -1
77+
#define SUCCESS_CRTLWRAPPER 0
78+
#define FAILURE_CRTLWRAPPER -1
7979

8080
enum {
8181
CTRL_ERR_NOT_CONNECTED = 1,
@@ -962,7 +962,7 @@ class CCtrlMsgWrapper {
962962
if(checkResponsePayload<CtrlMsgRespSetWifiMaxTxPower>(answer,
963963
(int)CTRL_RESP_SET_WIFI_MAX_TX_POWER,
964964
answer->resp_set_wifi_max_tx_power) == ESP_CONTROL_OK ) {
965-
if(answer->resp_set_wifi_max_tx_power->resp == FAILURE) {
965+
if(answer->resp_set_wifi_max_tx_power->resp == FAILURE_CRTLWRAPPER) {
966966
rv = ESP_CONTROL_ERROR_UNABLE_TO_PARSE_RESPONSE;
967967
}
968968
else if(answer->resp_set_wifi_max_tx_power->resp == CTRL_ERR_OUT_OF_RANGE) {
@@ -1185,7 +1185,7 @@ class CCtrlMsgWrapper {
11851185
answer->event_station_disconnect_from_esp_softap);
11861186

11871187
if(rv == ESP_CONTROL_OK) {
1188-
if(answer->event_station_disconnect_from_esp_softap->resp == SUCCESS) {
1188+
if(answer->event_station_disconnect_from_esp_softap->resp == SUCCESS_CRTLWRAPPER) {
11891189
copyData((uint8_t *)mac_out,
11901190
mac_out_dim,
11911191
answer->event_station_disconnect_from_esp_softap->mac.data,

0 commit comments

Comments
 (0)
0