From: Uwe Hermann Date: Sun, 9 Sep 2018 13:20:50 +0000 (+0200) Subject: usb_power_delivery: Drop non-existing max_w for now. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d0d63deadf5b841199c42721bc498fc5c9a86126;p=libsigrokdecode.git usb_power_delivery: Drop non-existing max_w for now. --- diff --git a/decoders/usb_power_delivery/pd.py b/decoders/usb_power_delivery/pd.py index 42425ac..cc0276a 100644 --- a/decoders/usb_power_delivery/pd.py +++ b/decoders/usb_power_delivery/pd.py @@ -257,7 +257,7 @@ class Decoder(srd.Decoder): elif mark == 2: op_w = ((rdo >> 10) & 0x3ff) * 0.25 mp_w = (rdo & 0x3ff) * 0.25 - t_settings = '%gW (operating) / %gW (max)' % (op_w, max_w) + t_settings = '%gW (operating)' % op_w else: op_a = ((rdo >> 10) & 0x3ff) * 0.01 max_a = (rdo & 0x3ff) * 0.01