thermal: 解决Bug85912
Change-Id: I57af7e8eb5c89cd8f8db8bfc122af7bf5cb7f6fe
diff --git a/mbtk/liblynq_lib/src/lynq_thermal.c b/mbtk/liblynq_lib/src/lynq_thermal.c
index 5c755fc..a9ca654 100755
--- a/mbtk/liblynq_lib/src/lynq_thermal.c
+++ b/mbtk/liblynq_lib/src/lynq_thermal.c
@@ -78,10 +78,10 @@
/****************************API***************************************/
int get_thermal_zone(int *numbers, int size)
{
- if(numbers == NULL || size <= 6)
+ if(numbers == NULL || size < 6)
{
LOGE("[qser_thermal]: numbers is NULL!");
- return -1;
+ return QSER_RESULT_FAIL;
}
int ret = 0;
@@ -110,7 +110,7 @@
numbers[thermal_num] = 0;
}
- return size;
+ return 6;
}
/****************************API***************************************/