Fix the id string offset

Since commit 344bfab229a17c7227b9bec02f616505a8d9e998 only a subset of
the id string is used to detect the model. But because the offset was
never updated, the model detection always fails now.
This commit is contained in:
Jef Driesen 2017-06-22 21:17:46 +02:00
parent 7ce057d2ba
commit c26755624d

View File

@ -207,7 +207,7 @@ cochran_commander_get_model (cochran_commander_device_t *device)
unsigned int model = 0xFFFFFFFF;
for (unsigned int i = 0; i < C_ARRAY_SIZE(models); ++i) {
if (memcmp (device->id + 0x3B, models[i].id, sizeof(models[i].id) - 1) == 0) {
if (memcmp (device->id + 0x3D, models[i].id, sizeof(models[i].id) - 1) == 0) {
model = models[i].model;
break;
}