From a8a1c8d1615055ab731111f8369c0e252a35ca84 Mon Sep 17 00:00:00 2001 From: Arnaud Ferraris Date: Thu, 10 Dec 2020 17:07:36 +0100 Subject: [PATCH] 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. --- src/manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manager.c b/src/manager.c index f07c0e8..3156652 100644 --- a/src/manager.c +++ b/src/manager.c @@ -144,7 +144,7 @@ int main(int argc, char *argv[]) return 1; } read(fd, compatible, sizeof(compatible)); - if (strstr(compatible, "pine64,pinephone-1.1")) + if (!strstr(compatible, "pine64,pinephone-1.2")) manager.braveheart = TRUE; close(fd);