mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
Merge pull request #8604 from gebart/pr/sx127x-uninitialized
drivers/sx127x: Fix -Wmaybe-uninitialized warning
This commit is contained in:
commit
1f49c0dda2
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user