HWI icon indicating copy to clipboard operation
HWI copied to clipboard

FloatOperation in btchipHelpers.py

Open St333p opened this issue 2 years ago • 0 comments

Importing HWI in my project causes a crash caused by a decimal.Decimal.FloatOperation on line 24 of hwilib/devices/btchip/btchipHelpers.py. It is caused by the conversion of a float into a decimal in Decimal(1e8).

Since importing the library in a python shell in the same virtualenv does work correcly, the issue lies on my side and I'm currently looking into Decimal configurations in my project that might affect this. Nonetheless, I think changing it to Decimal(10**8) would be cleaner. Sorry if this was already discussed, I was not able to find any issues on the matter.

St333p avatar Feb 11 '22 09:02 St333p