Skip to content
Snippets Groups Projects
Commit 73c85ccf authored by Joakim Nohlgård's avatar Joakim Nohlgård
Browse files

drivers/sx127x: Fix -Wmaybe-uninitialized warning

parent 490a72ee
No related branches found
No related tags found
No related merge requests found
...@@ -539,7 +539,7 @@ static int _get_state(sx127x_t *dev, void *val) ...@@ -539,7 +539,7 @@ static int _get_state(sx127x_t *dev, void *val)
{ {
uint8_t op_mode; uint8_t op_mode;
op_mode = sx127x_get_op_mode(dev); op_mode = sx127x_get_op_mode(dev);
netopt_state_t state; netopt_state_t state = NETOPT_STATE_OFF;
switch(op_mode) { switch(op_mode) {
case SX127X_RF_OPMODE_SLEEP: case SX127X_RF_OPMODE_SLEEP:
state = NETOPT_STATE_SLEEP; state = NETOPT_STATE_SLEEP;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment