We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35cab27 commit b17b8afCopy full SHA for b17b8af
1 file changed
include/object_neo_device.h
@@ -146,7 +146,7 @@ static PyObject* neo_device_object_tp_repr(PyObject* o)
146
// Check range is 0A0000-ZZZZZZ
147
PyObject* sn = NULL;
148
uint32_t serial = (uint32_t)nd->dev.SerialNumber;
149
- if (16796160 <= serial && serial <= 2176782335)
+ if (MIN_BASE36_SERIAL <= serial && serial <= MAX_SERIAL)
150
sn = convert_to_base36(serial);
151
else
152
sn = PyUnicode_FromFormat("%lu", nd->dev.SerialNumber);
0 commit comments