mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
drivers/rn2xx3.h : Add CONFIG_
Add CONFIG_ prefix to RN2XX3_DEFAULT_SLEEP
This commit is contained in:
parent
0ba2df9b4e
commit
7d679c7f0f
@ -64,8 +64,8 @@ extern "C" {
|
||||
/**
|
||||
* @brief Default sleep duration (in ms)
|
||||
*/
|
||||
#ifndef RN2XX3_DEFAULT_SLEEP
|
||||
#define RN2XX3_DEFAULT_SLEEP (5000U)
|
||||
#ifndef CONFIG_RN2XX3_DEFAULT_SLEEP
|
||||
#define CONFIG_RN2XX3_DEFAULT_SLEEP (5000U)
|
||||
#endif
|
||||
/** @} */
|
||||
|
||||
|
@ -171,7 +171,7 @@ int rn2xx3_init(rn2xx3_t *dev)
|
||||
dev->sleep_timer.callback = _sleep_timer_cb;
|
||||
dev->sleep_timer.arg = dev;
|
||||
|
||||
rn2xx3_sys_set_sleep_duration(dev, RN2XX3_DEFAULT_SLEEP);
|
||||
rn2xx3_sys_set_sleep_duration(dev, CONFIG_RN2XX3_DEFAULT_SLEEP);
|
||||
|
||||
/* sending empty command to clear uart buffer */
|
||||
if (rn2xx3_write_cmd(dev) == RN2XX3_TIMEOUT) {
|
||||
|
Loading…
Reference in New Issue
Block a user