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?

_______________________________________________
users mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users

Reply via email to