Bugzilla – Attachment 250 Details for
Bug 708
9 bit UART decoding not working
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix uart decoder failure when num_data_bits=9
0001-fix-9-bit-serial.patch (text/plain), 785 bytes, created by
Drew Dibble
on 2016-06-07 04:13:02 CEST
(
hide
)
Description:
fix uart decoder failure when num_data_bits=9
Filename:
MIME Type:
Creator:
Drew Dibble
Created:
2016-06-07 04:13:02 CEST
Size:
785 bytes
patch
obsolete
>From 7a370942e4d8213dcdf059e2657909d0643c8d1d Mon Sep 17 00:00:00 2001 >From: Andrew Dibble <a.d.dibble@gmail.com> >Date: Mon, 6 Jun 2016 19:09:44 -0700 >Subject: [PATCH 1/1] fix 9-bit serial > >--- > decoders/uart/pd.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py >index 0e6e548..be01e02 100644 >--- a/decoders/uart/pd.py >+++ b/decoders/uart/pd.py >@@ -285,8 +285,8 @@ class Decoder(srd.Decoder): > elif f == 'bin': > self.putx(rxtx, [rxtx, [bin(b)[2:].zfill(8)]]) > >- self.putbin(rxtx, [rxtx, bytes([b])]) >- self.putbin(rxtx, [2, bytes([b])]) >+ self.putbin(rxtx, [rxtx, bin(b)]) >+ self.putbin(rxtx, [2, bin(b)]) > > self.databits = [[], []] > >-- >2.3.2 (Apple Git-55) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 708
:
194
| 250