aboutsummaryrefslogtreecommitdiffstats
path: root/gui/dpd
diff options
context:
space:
mode:
Diffstat (limited to 'gui/dpd')
-rw-r--r--gui/dpd/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/dpd/__init__.py b/gui/dpd/__init__.py
index 85abe86..2c7649b 100644
--- a/gui/dpd/__init__.py
+++ b/gui/dpd/__init__.py
@@ -57,8 +57,8 @@ class DPD:
def capture_calibration(self):
tx_ts, tx_median, rx_ts, rx_median, coarse_offset, correlation_coefficient = self.capture.calibrate()
result = {'status': "ok"}
- result['tx_median'] = "{:.2}dB".format(20*np.log10(tx_median))
- result['rx_median'] = "{:.2}dB".format(20*np.log10(rx_median))
+ result['tx_median'] = "{:.2f}dB".format(20*np.log10(tx_median))
+ result['rx_median'] = "{:.2f}dB".format(20*np.log10(rx_median))
result['tx_ts'] = tx_ts
result['rx_ts'] = rx_ts
result['coarse_offset'] = int(coarse_offset)