mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-26 20:14:19 -04:00
b7cd725c86
Fix Coverity CID 649221 (DIVIDE_BY_ZERO) by validating the cold calibration power sum before calculating the Y-factor. Refactor calcCalTrx() to use early returns for invalid calibration states and avoid duplicated UI clearing logic. Also handle the undefined Y-factor case when hot and cold measurements have equal power. Signed-off-by: Robin Getz <rgetz503@gmail.com>