usb_power_delivery: Drop non-existing max_w for now.
authorUwe Hermann <uwe@hermann-uwe.de>
Sun, 9 Sep 2018 13:20:50 +0000 (15:20 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Sun, 9 Sep 2018 13:22:03 +0000 (15:22 +0200)
decoders/usb_power_delivery/pd.py

index 42425acd9955db8ea78f022e400108d959176bfd..cc0276a9e230bdfbbbf4d0374a78a5a75ef91420 100644 (file)
@@ -257,7 +257,7 @@ class Decoder(srd.Decoder):
         elif mark == 2:
             op_w = ((rdo >> 10) & 0x3ff) * 0.25
             mp_w = (rdo & 0x3ff) * 0.25
         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
         else:
             op_a = ((rdo >> 10) & 0x3ff) * 0.01
             max_a = (rdo & 0x3ff) * 0.01