Private
Public Access
2
0

Adding alias name LEC-ALAI for LEC-AL-AI platform.

Signed-off-by: gowtham.r <gowtham.r@adlinktech.com>
This commit is contained in:
gowtham.r
2020-09-15 11:15:50 +00:00
committed by Propanu
parent 52d1d93d00
commit 68e75edcad

View File

@@ -844,7 +844,8 @@ mraa_board_t* mraa_lec_al_board()
if((fh = fopen("/sys/devices/virtual/dmi/id/product_name", "r")) != NULL) {
if (getline(&line, &len, fh) != -1) {
line[strcspn(line, "\r\n")] = 0;
if ((strncasecmp(line, "LEC-AL-AI", strlen("LEC-AL-AI") + 1) == 0)) {
if ((strncasecmp(line, "LEC-AL-AI", strlen("LEC-AL-AI") + 1) == 0)\
|| (strncasecmp(line, "LEC-ALAI", strlen("LEC-ALAI") + 1) == 0)) {
b->platform_name = PLATFORM_NAME_AI;
lecalai = 1;
}