local: Fix device detection
This commit is contained in:
1 parent
1ebc2b8308
commit
8084f68b50
1 file changed
+7
-17
+7
-17
@@ -75,28 +75,18 @@ int local_init(void) {
|
|||||||
--ptr2;
|
--ptr2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( strcmp(ptr, "Nokia 770") == 0 ) {
|
if ( strcmp(ptr, "Nokia 770") == 0 )
|
||||||
device = DEVICE_SU_18;
|
device = DEVICE_SU_18;
|
||||||
printf("Found local device: %s\n", device_to_long_string(device));
|
else if ( strcmp(ptr, "Nokia N800") == 0 )
|
||||||
fclose(file);
|
|
||||||
return 0;
|
|
||||||
} else if ( strcmp(ptr, "Nokia N800") == 0 ) {
|
|
||||||
device = DEVICE_RX_34;
|
device = DEVICE_RX_34;
|
||||||
printf("Found local device: %s\n", device_to_long_string(device));
|
else if ( strcmp(ptr, "Nokia N810") == 0 )
|
||||||
fclose(file);
|
|
||||||
return 0;
|
|
||||||
} else if ( strcmp(ptr, "Nokia N810") == 0 ) {
|
|
||||||
device = DEVICE_RX_44;
|
device = DEVICE_RX_44;
|
||||||
printf("Found local device: %s\n", device_to_long_string(device));
|
else if ( strcmp(ptr, "Nokia N810 WiMAX") == 0 )
|
||||||
fclose(file);
|
|
||||||
return 0;
|
|
||||||
} else if ( strcmp(ptr, "Nokia N810 WiMAX") == 0 ) {
|
|
||||||
device = DEVICE_RX_48;
|
device = DEVICE_RX_48;
|
||||||
printf("Found local device: %s\n", device_to_long_string(device));
|
else if ( strcmp(ptr, "Nokia RX-51 board") == 0 )
|
||||||
fclose(file);
|
|
||||||
return 0;
|
|
||||||
} else if ( strcmp(ptr, "Nokia RX-51 board") == 0) {
|
|
||||||
device = DEVICE_RX_51;
|
device = DEVICE_RX_51;
|
||||||
|
|
||||||
|
if ( device ) {
|
||||||
printf("Found local device: %s\n", device_to_long_string(device));
|
printf("Found local device: %s\n", device_to_long_string(device));
|
||||||
fclose(file);
|
fclose(file);
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in new issue
Block a user