mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-26 03:54:30 -04:00
1270f27ebf
Fix a Coverity UNINIT warning in RadioAstronomyGUI::update2DImage() where the intensity variable could be used uninitialized if m_powerYUnits contained an unexpected value and followed the default path. Handle the default switch case by logging a warning and falling back to fft->m_totalPowerdBFS, ensuring intensity is always initialized before being used while providing diagnostics for invalid enum values. Fixes Coverity CID 649242. Signed-off-by: Robin Getz <rgetz503@gmail.com>