manager: improve BH/CE detection

`Developer edition` phones have a different compatible string but should 
be considered identical to BraveHeart edition here. Therefore BH is the 
default phone, unless the compatible is that of a CE phone.
This commit is contained in:
Arnaud Ferraris
2020-12-10 17:07:36 +01:00
parent 47b2f71b6f
commit a8a1c8d161

View File

@@ -144,7 +144,7 @@ int main(int argc, char *argv[])
return 1; return 1;
} }
read(fd, compatible, sizeof(compatible)); read(fd, compatible, sizeof(compatible));
if (strstr(compatible, "pine64,pinephone-1.1")) if (!strstr(compatible, "pine64,pinephone-1.2"))
manager.braveheart = TRUE; manager.braveheart = TRUE;
close(fd); close(fd);