Skip to content

Fixed data length check and add padding - #24

Open
richardmoser wants to merge 1 commit into
usgraphics:masterfrom
richardmoser:master
Open

Fixed data length check and add padding#24
richardmoser wants to merge 1 commit into
usgraphics:masterfrom
richardmoser:master

Conversation

@richardmoser

@richardmoser richardmoser commented Nov 19, 2025

Copy link
Copy Markdown

Fixes a data padding issue in the PRINT_DATA() function that appears on Ubuntu 25.10 and possibly other systems.

Changed the if condition regarding data_len in PRINT_DATA() from data_len >= MAX_DATA_LEN to data_len > MAX_DATA_LEN to correct bar graph padding. Also added a line to pad the data after it is truncated in the same if block.

See Issue #23 for more information about the error. (I can't seem to link the two either due to permissions or my own level of knowledge)

Fix data padding logic in machine_report.sh

Changed the if condition ragarding data_len in PRINT_DATA() from `data_len >= MAX_DATA_LEN` to `data_len > MAX_DATA_LEN` to correct bar graph padding. Also added a line to pad the data after it is truncated in the same if block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant