Skip to content

Fixed reading of color from a bytearray.#116

Open
zavorka wants to merge 1 commit into
prusa3d:masterfrom
zavorka:color-from-bytes-fix
Open

Fixed reading of color from a bytearray.#116
zavorka wants to merge 1 commit into
prusa3d:masterfrom
zavorka:color-from-bytes-fix

Conversation

@zavorka

@zavorka zavorka commented Nov 2, 2018

Copy link
Copy Markdown

The int() function interprets the bytearray as an ascii string, emitting
ValueError: invalid literal for int() with base 10: ' when it reads values
like 0x00 or 0xff.

The int() function interprets the bytearray as an ascii string, emitting
`ValueError: invalid literal for int() with base 10: '` when it reads values
like 0x00 or 0xff.
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