Skip to content
Permalink
Browse files

ieee802154_kw41z: Fix build error with SYS_LOG_INFO

The following fix:

commit c8b17ec
Author: Tobias Aschenbrenner <tobias.aschenbrenner@blik.io>
Date:   Tue Dec 18 14:16:00 2018 +0100

    fix: kw41z: Use correct mapping for dBm

Was using SYS_LOG_INFO and should be using LOG_INFO.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
  • Loading branch information...
galak committed Apr 17, 2019
1 parent e039053 commit f92abffe5fe829cd5c35cd94951b441977e5c77d
Showing with 2 additions and 2 deletions.
  1. +2 −2 drivers/ieee802154/ieee802154_kw41z.c
@@ -445,13 +445,13 @@ static int kw41z_filter(struct device *dev,
static int kw41z_set_txpower(struct device *dev, s16_t dbm)
{
if (dbm < KW41Z_OUTPUT_POWER_MIN) {
SYS_LOG_INF("TX-power %d dBm below min of %d dBm, using %d dBm",
LOG_INF("TX-power %d dBm below min of %d dBm, using %d dBm",
dbm,
KW41Z_OUTPUT_POWER_MIN,
KW41Z_OUTPUT_POWER_MIN);
dbm = KW41Z_OUTPUT_POWER_MIN;
} else if (dbm > KW41Z_OUTPUT_POWER_MAX) {
SYS_LOG_INF("TX-power %d dBm above max of %d dBm, using %d dBm",
LOG_INF("TX-power %d dBm above max of %d dBm, using %d dBm",
dbm,
KW41Z_OUTPUT_POWER_MAX,
KW41Z_OUTPUT_POWER_MAX);

0 comments on commit f92abff

Please sign in to comment.
You can’t perform that action at this time.