I am trying to implement simple Manchester debug output to monitor via Saleae Logic but I am probably missing something. I am using "normal Manchester" with negative edge meaning one, 8 bits per transfer, LSB first. Values from 1 to 254 decode correctly (at least I did not notice a problem) but Saleae does not decode 255 and 0. Do you know how to fix it?
EDIT: I think the byte "correctly" but without 0-1 (or 1-0) transition Saleae is unable to decode the byte and on some circumstances it is even ambiguous (as shown in OP). But when looking into the protocol description I did not find any countermeasures.
EDIT 2:
There is a workaround sending one preamble bit of opposite polarity. It works but I still wonder how the "true" Manchester deals with the ambiguity presented in the OP. Updated code: