Use the macro for encoding firmware versions
This makes it a bit easer to quickly locate the workarounds for specific firmware versions.
This commit is contained in:
parent
59dd6a2a56
commit
34bc6b1613
@ -770,7 +770,7 @@ hw_ostc3_device_foreach (dc_device_t *abstract, dc_dive_callback_t callback, voi
|
|||||||
if (!compact) {
|
if (!compact) {
|
||||||
// Workaround for a bug in older firmware versions.
|
// Workaround for a bug in older firmware versions.
|
||||||
unsigned int firmware = array_uint16_be (header + offset + 0x30);
|
unsigned int firmware = array_uint16_be (header + offset + 0x30);
|
||||||
if (firmware < 93)
|
if (firmware < OSTC3FW(0,93))
|
||||||
length -= 3;
|
length -= 3;
|
||||||
}
|
}
|
||||||
if (length < RB_LOGBOOK_SIZE_FULL) {
|
if (length < RB_LOGBOOK_SIZE_FULL) {
|
||||||
@ -818,7 +818,7 @@ hw_ostc3_device_foreach (dc_device_t *abstract, dc_dive_callback_t callback, voi
|
|||||||
if (!compact) {
|
if (!compact) {
|
||||||
// Workaround for a bug in older firmware versions.
|
// Workaround for a bug in older firmware versions.
|
||||||
unsigned int firmware = array_uint16_be (header + offset + 0x30);
|
unsigned int firmware = array_uint16_be (header + offset + 0x30);
|
||||||
if (firmware < 93)
|
if (firmware < OSTC3FW(0,93))
|
||||||
length -= 3;
|
length -= 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user