Skip to content

Commit a96bb9f

Browse files
committed
Fixed LoRaMacClassBMibGetRequestConfirm function call. Must be called in all situations.
1 parent 535da61 commit a96bb9f

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

src/mac/LoRaMac.c

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3166,14 +3166,7 @@ LoRaMacStatus_t LoRaMacMibGetRequestConfirm( MibRequestConfirm_t* mibGet )
31663166
}
31673167
default:
31683168
{
3169-
if( MacCtx.NvmCtx->DeviceClass == CLASS_B )
3170-
{
3171-
status = LoRaMacClassBMibGetRequestConfirm( mibGet );
3172-
}
3173-
else
3174-
{
3175-
status = LORAMAC_STATUS_SERVICE_UNKNOWN;
3176-
}
3169+
status = LoRaMacClassBMibGetRequestConfirm( mibGet );
31773170
break;
31783171
}
31793172
}
@@ -3757,14 +3750,7 @@ LoRaMacStatus_t LoRaMacMibSetRequestConfirm( MibRequestConfirm_t* mibSet )
37573750
}
37583751
default:
37593752
{
3760-
if( MacCtx.NvmCtx->DeviceClass == CLASS_B )
3761-
{
3762-
status = LoRaMacMibClassBSetRequestConfirm( mibSet );
3763-
}
3764-
else
3765-
{
3766-
status = LORAMAC_STATUS_SERVICE_UNKNOWN;
3767-
}
3753+
status = LoRaMacMibClassBSetRequestConfirm( mibSet );
37683754
break;
37693755
}
37703756
}

0 commit comments

Comments
 (0)