diff --git a/drivers/lcd/st7567.c b/drivers/lcd/st7567.c index 179c3d2e5d..f138e14794 100644 --- a/drivers/lcd/st7567.c +++ b/drivers/lcd/st7567.c @@ -206,7 +206,7 @@ #define LS_BIT (1 << 0) #define MS_BIT (1 << 7) -/* Debst7567 ******************************************************************************/ +/* Debug ******************************************************************************/ #ifdef CONFIG_LCD_ST7567DEBUG # define st7567dbg(format, ...) vdbg(format, ##__VA_ARGS__) diff --git a/net/route/net_router.c b/net/route/net_router.c index 1181262e74..8dde05c1f1 100644 --- a/net/route/net_router.c +++ b/net/route/net_router.c @@ -146,9 +146,9 @@ int net_router(net_ipaddr_t target, FAR net_ipaddr_t *router) /* We found a route. Return the router address. */ #ifdef CONFIG_NET_IPv6 - net_ipaddr_copy(router, match.target); + net_ipaddr_copy(router, match.router); #else - net_ipaddr_copy(*router, match.target); + net_ipaddr_copy(*router, match.router); #endif ret = OK; }