mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/at: remove deprecated AT_SEND_ECHO define
This commit is contained in:
parent
f22ba30a31
commit
37bc47e21c
@ -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;
|
||||
}
|
||||
|
@ -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).
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user