summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Calculate multirecords checksum based on the raw bytes.Diego Elio Pettenò2021-03-031-7/+14
| | | | | | | | | | | | | | | | | The original FreeStyle Libre software is known for incorrectly truncating strings with UTF-8, which causes the multi-record strings not to decode correctly. But since the Libre actually sends these as they are provided, we can calculate the checksum correctly if we do that _before_ replacing the invalid codepoints. This splits the `send_text_command` method into a public and a private interface, with the public returning the expected string, while the private returns the raw bytes. It should probably be changed to always return bytes instead. This change fixes https://github.com/glucometers-tech/glucometerutils/issues/103.
* Update pre-commit configuration.Diego Elio Pettenò2020-12-121-9/+3
|
* Add missing pre-commit action configuration.freestyle-hid-1.0.1Diego Elio Pettenò2020-10-041-0/+24
|
* Make sure to install usbmon-tools when enabling tools.Diego Elio Pettenò2020-10-042-1/+2
| | | | Also make sure to install tools when running tests.
* Backport the one test that was present in glucometerutils.Diego Elio Pettenò2020-10-045-0/+59
| | | | This also sets up the whole pytest configuration and Travis CI integration.
* Add missing py.typed files to package.Diego Elio Pettenò2020-10-041-0/+3
|
* Initial import of freestyle-hid.freestyle-hid-1.0.0Diego Elio Pettenò2020-10-0425-0/+1589
This library is a factor-out of https://github.com/glucometers-tech/glucometerutils to only include the FreeStyle implementation, to make it easier to use outside of glucometerutils, and in particular to make it easier to build better reverse engineering tooling around it. Note that since the code was a mix of MIT and Apache-2.0 license, the overall license of the library is written down as Apache-2.0, as that would be a super-set of the requirements from MIT.