| Commit message (Collapse) | Author | Files | Lines |
|
This still is required to fix Issue #38, but luckily it's just a test
failure for now.
|
|
|
|
This test was actually only testing the CRC CCITT implementation now that
otultraeasy uses construct.
|
|
This adds tests to ensure this works right in the general case, so that it
can be used with different parameters.
The adapter will be reused in the otverio2015 driver.
|
|
This removes the wholly complicated _Packet() object and replace it with
more readable construct.
Unfortunately this appears to reduce performance because of the serial
stream buffering, needed to calculate the checksum. It's unfortunate, but
it at least avoids a significant amount of custom code.
|
|
This would have found an extra bug that was pushed unfixed after enum
conversion, and two bugs that I did find during the conversion.
|
|
|
|
Since I've increased the minimum Python version to 3.4, mock is now
available within Python. And since I already used absl-py parameterized for
test_common, make use of it to avoid boilerplate.
|
|
This ensures the tests run independently instead of failing at the first mistake.
|
|
This was mixing up the units in the conversion. While fixing the bug,
remove the confusing two-parameter form of convert_glucose_unit.
|
|
This makes the code more idiomatic and less brittle.
|
|
This makes it easier to figure out which files represent drivers, and which
ones are per-vendor support modules.
|
|
Most glucometers have *some* sort of checksum, so there is no reason to
implement this on a per-driver basis.
|
|
The same CRC-CCITT function is used in Verio 2015 devices, so prepare to
reuse it by moving it to the common module.
|
|
The function is not shared with the Ultra Easy and likely not with
other devices either.
|
|
The driver is fully functional but requires proper documentation and
testing.
|
|
|
|
|
|
There is no reason for me to use GPLv3 now that I'm not using the
CRC32-Sick code, so I'll go with the most liberal license out there.
|
|
Unlike what I though, OneTouch2 does not use CRC32 Sick algorithm, but
a very stupid full 16-bit modulo sum of the bytes in the reply.
This is very simple and does not require GPLv3 code at all.
|
|
This introduced some changes in the Exception class to simplify the
code, and at the same time it adds a module for multiple lifescan
drivers to share code (multiple OneTouch protocols share the same
checksum for instance).
|
|
|
|
|
|
|
|
|