[SX128x] Fix non-trivial initializer usage

This commit is contained in:
jgromes 2024-08-20 20:45:48 +02:00
parent 25458860e3
commit bac6791066

View file

@ -424,6 +424,10 @@ int16_t SX128x::scanChannel() {
ChannelScanConfig_t config = { ChannelScanConfig_t config = {
.cad = { .cad = {
.symNum = RADIOLIB_SX128X_CAD_PARAM_DEFAULT, .symNum = RADIOLIB_SX128X_CAD_PARAM_DEFAULT,
.detPeak = 0,
.detMin = 0,
.exitMode = 0,
.timeout = 0,
.irqFlags = RADIOLIB_IRQ_NOT_SUPPORTED, .irqFlags = RADIOLIB_IRQ_NOT_SUPPORTED,
}, },
}; };
@ -674,6 +678,10 @@ int16_t SX128x::startChannelScan() {
ChannelScanConfig_t config = { ChannelScanConfig_t config = {
.cad = { .cad = {
.symNum = RADIOLIB_SX128X_CAD_PARAM_DEFAULT, .symNum = RADIOLIB_SX128X_CAD_PARAM_DEFAULT,
.detPeak = 0,
.detMin = 0,
.exitMode = 0,
.timeout = 0,
.irqFlags = RADIOLIB_IRQ_NOT_SUPPORTED, .irqFlags = RADIOLIB_IRQ_NOT_SUPPORTED,
}, },
}; };