File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,9 @@ void SX126xInit( DioIrqHandler dioIrq )
125125 // Initialize RF switch control
126126 SX126xIoRfSwitchInit ( );
127127
128+ // Force image calibration
129+ ImageCalibrated = false;
130+
128131 SX126xSetOperatingMode ( MODE_STDBY_RC );
129132}
130133
@@ -255,6 +258,12 @@ void SX126xSetSleep( SleepParams_t sleepConfig )
255258 uint8_t value = ( ( ( uint8_t )sleepConfig .Fields .WarmStart << 2 ) |
256259 ( ( uint8_t )sleepConfig .Fields .Reset << 1 ) |
257260 ( ( uint8_t )sleepConfig .Fields .WakeUpRTC ) );
261+
262+ if ( sleepConfig .Fields .WarmStart == 0 )
263+ {
264+ // Force image calibration
265+ ImageCalibrated = false;
266+ }
258267 SX126xWriteCommand ( RADIO_SET_SLEEP , & value , 1 );
259268 SX126xSetOperatingMode ( MODE_SLEEP );
260269}
You can’t perform that action at this time.
0 commit comments