blob: 62af03a5a4032577dfb3bf60c3bf3c4568fda5fc [file] [log] [blame]
wangyouqiang0536d922024-01-23 11:40:25 +08001#include <sys/types.h>
2#include <unistd.h>
3#include <stdio.h>
4#include <string.h>
5#include <fcntl.h>
6#include <stdlib.h>
7
8#include"lynq_qser_thermal.h"
9#define MAX_SIZE 3
10
11int main(int argc, char *argv[]){
12 int numbers[MAX_SIZE];
13 int ret = 0;
14 ret = get_thermal_zone(numbers, MAX_SIZE);
15 if (ret <= 0)
16 {
17 printf("get_thermal_zone error\n");
18 return -1;
19 }
20
21 for (int j = 0; j < ret; ++j) {
22 printf("[%s-%d] temp[%d] = %d \n", __func__, __LINE__, j, numbers[j]);
23 }
24
25 return 0;
26}
27