Compare chip IDs correctly.

pull/4/head
Peter Zotov 2011-04-08 19:08:02 +04:00
rodzic 7f58436b93
commit 12e13cd08a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -72,7 +72,7 @@ int main(int argc, char** argv) {
const struct chip_params* params = NULL; const struct chip_params* params = NULL;
for(int i = 0; i < sizeof(devices) / sizeof(devices[0]); i++) { for(int i = 0; i < sizeof(devices) / sizeof(devices[0]); i++) {
if(devices[i].chip_id == chip_id) { if(devices[i].chip_id == (chip_id & 0xFFF)) {
params = &devices[i]; params = &devices[i];
break; break;
} }