@@ -147,6 +147,7 @@ void hexPrint(uint8_t data[], int length, FILE *dest) { // {{{
147
147
} else { \
148
148
SX126x* sx126x_chip = dynamic_cast <SX126x*>(origin); \
149
149
if (sx126x_chip != nullptr ) { \
150
+ sx126x_chip->XTAL = true ; \
150
151
result = sx126x_chip->invertIQ (false ); \
151
152
if (result == RADIOLIB_ERR_NONE) { \
152
153
result = sx126x_chip->setCRC ((uint8_t ) 1 ); \
@@ -184,6 +185,7 @@ void hexPrint(uint8_t data[], int length, FILE *dest) { // {{{
184
185
} else { \
185
186
SX126x* sx126x_chip = dynamic_cast <SX126x*>(origin); \
186
187
if (sx126x_chip != nullptr ) { \
188
+ sx126x_chip->XTAL = true ; \
187
189
result = sx126x_chip->invertIQ (downlink_pkt.iq_polatization_inversion ); \
188
190
if (result == RADIOLIB_ERR_NONE) { \
189
191
result = sx126x_chip->setCRC (downlink_pkt.disable_crc ? (uint8_t ) 0 : (uint8_t ) 1 ); \
@@ -203,6 +205,8 @@ void hexPrint(uint8_t data[], int length, FILE *dest) { // {{{
203
205
downlink_pkt.preamble_length , \
204
206
false /* don't use OOK */ \
205
207
); \
208
+ SX126x* sx126x_chip = dynamic_cast <SX126x*>(origin); \
209
+ if (sx126x_chip != nullptr ) sx126x_chip->XTAL = true ; \
206
210
if (result == RADIOLIB_ERR_NONE) result = chip->setSyncWord (gfskSyncWord, ((uint8_t ) sizeof (gfskSyncWord))); \
207
211
} \
208
212
if (result == RADIOLIB_ERR_NONE) result = chip->setCurrentLimit (current_lim_ma); \
0 commit comments