[riot-users] Override macro variables

Philipp Blum philipp-blum at jakiku.de
Fri Oct 12 04:19:13 CEST 2018


Hello people,

I am currently working with the at library. Since my ble module uses 
\r\n instead of \r I want to override the EOL.

So I tried:

#include "periph/uart.h"
#include "xtimer.h"
#include "at.h"

#undef AT_SEND_EOL
#define AT_SEND_EOL "\r\n"

#undef AT_SEND_EOL_LEN
#define AT_SEND_EOL_LEN  (sizeof(AT_SEND_EOL) - 1)

and:

#define AT_SEND_EOL "\r\n"

#include "periph/uart.h"
#include "xtimer.h"
#include "at.h"

But both are not working. So, I am now a bit confused. So, what's the 
proper way to override the macro varible then?



More information about the users mailing list