1
0
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:
Alexandre Abadie 2018-02-22 14:43:53 +01:00 committed by GitHub
commit 1f49c0dda2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;