diff --git a/drivers/sx127x/sx127x_netdev.c b/drivers/sx127x/sx127x_netdev.c index 7f374eb3c129b6adac0f4f36704a362571cb0160..30c6e7ef7313c3e8ada45d9196210ad9eda74310 100644 --- a/drivers/sx127x/sx127x_netdev.c +++ b/drivers/sx127x/sx127x_netdev.c @@ -539,7 +539,7 @@ static int _get_state(sx127x_t *dev, void *val) { uint8_t op_mode; op_mode = sx127x_get_op_mode(dev); - netopt_state_t state; + netopt_state_t state = NETOPT_STATE_OFF; switch(op_mode) { case SX127X_RF_OPMODE_SLEEP: state = NETOPT_STATE_SLEEP;