refactor(airtime): introduce refresh_radio_params method for dynamic modulation updates

Added a new method to the AirtimeManager class to refresh modulation parameters without clearing transmission history. Updated ConfigManager to call this method after applying live radio configurations. Enhanced tests to verify that modulation updates occur correctly during live updates.
This commit is contained in:
agessaman
2026-07-17 17:38:11 -07:00
parent b11d4972ff
commit 2432332f87
11 changed files with 236 additions and 19 deletions
+3 -1
View File
@@ -2774,7 +2774,9 @@ class TestEngineTransmissionAndBackgroundLifecycle:
handler._record_crc_errors_async.assert_awaited_once()
handler._send_periodic_advert_async.assert_awaited_once()
handler.cleanup_cache.assert_called_once()
handler.storage.cleanup_old_data.assert_called_once()
handler.storage.cleanup_old_data.assert_called_once_with(
days=31, companion_events_days=31
)
@pytest.mark.asyncio
async def test_background_timer_loop_continues_when_db_cleanup_fails(self, handler):