Hi, On Sun, Oct 16, 2016 at 06:25:28PM +0200, Gerhard Sittig wrote: > Factor out the code which generates a textual representation for the > numeric values that were communicated via UART bit patterns. Make the > width of the output text depend on the number of bits in the UART frame > (five to nine) instead of assuming bytes of exactly eight bits. > > Fix other minor issues while we are here: Nine bits result in a number > range of 0 to 511 (not 512). ASCII codes 30 and 31 are non-printables. > The previous implementation skipped a significant leading digit in the > octal representation. > > Signed-off-by: Gerhard Sittig <gerhard.sit...@gmx.net>
Merged with minor cosmetic changes, thanks! Uwe. -- http://hermann-uwe.de | http://randomprojects.org | http://sigrok.org ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel