diff --git a/drivers/at/at.c b/drivers/at/at.c index 88047f8df9..958a42971a 100644 --- a/drivers/at/at.c +++ b/drivers/at/at.c @@ -174,7 +174,7 @@ int at_send_cmd(at_dev_t *dev, const char *command, uint32_t timeout) uart_write(dev->uart, (const uint8_t *)command, cmdlen); uart_write(dev->uart, (const uint8_t *)CONFIG_AT_SEND_EOL, AT_SEND_EOL_LEN); - if (AT_SEND_ECHO) { + if (!IS_ACTIVE(CONFIG_AT_SEND_SKIP_ECHO)) { if (at_expect_bytes(dev, command, timeout)) { return -1; } diff --git a/drivers/include/at.h b/drivers/include/at.h index 29236a1602..21f56aa136 100644 --- a/drivers/include/at.h +++ b/drivers/include/at.h @@ -98,20 +98,6 @@ extern "C" { #define CONFIG_AT_SEND_SKIP_ECHO #endif -/** - * @brief Enable/disable the expected echo after an AT command is sent. - * - * @deprecated Use inverse @ref CONFIG_AT_SEND_SKIP_ECHO instead. - * Will be removed after 2021.01 release. - */ -#ifndef AT_SEND_ECHO -#if IS_ACTIVE(CONFIG_AT_SEND_SKIP_ECHO) -#define AT_SEND_ECHO 0 -#else -#define AT_SEND_ECHO 1 -#endif -#endif - /** * @brief 1st end of line character received (S3 aka CR character for a modem). */