pppos-client: Refactor modem component

Merges https://github.com/espressif/esp-idf/pull/6483
This commit is contained in:
Liu Han
2021-02-07 11:11:12 +08:00
committed by bot
parent 42aaefe218
commit b3a35e3d4e
5 changed files with 56 additions and 14 deletions

View File

@@ -21,6 +21,20 @@
static const char *DCE_TAG = "sim800";
/**
* @brief Macro defined for error checking
*
*/
#define DCE_CHECK(a, str, goto_tag, ...) \
do \
{ \
if (!(a)) \
{ \
ESP_LOGE(DCE_TAG, "%s(%d): " str, __FUNCTION__, __LINE__, ##__VA_ARGS__); \
goto goto_tag; \
} \
} while (0)
/**
* @brief Handle response from AT+CPOWD=1
*/