mirror of
https://github.com/smittix/intercept.git
synced 2026-07-05 16:18:12 -07:00
Fix signal monitor not appearing by always emitting signal_level for detecting status
The to_dict() method was skipping signal_level when it was 0, so the frontend never received the field and never rendered the monitor. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -107,10 +107,10 @@ class DecodeProgress:
|
|||||||
result['message'] = self.message
|
result['message'] = self.message
|
||||||
if self.image:
|
if self.image:
|
||||||
result['image'] = self.image.to_dict()
|
result['image'] = self.image.to_dict()
|
||||||
if self.signal_level > 0:
|
if self.status == 'detecting':
|
||||||
result['signal_level'] = self.signal_level
|
result['signal_level'] = self.signal_level
|
||||||
if self.sstv_tone:
|
if self.sstv_tone:
|
||||||
result['sstv_tone'] = self.sstv_tone
|
result['sstv_tone'] = self.sstv_tone
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user