b.liu | 8583dce | 2024-04-03 13:30:08 +0800 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | #include <strings.h> |
| 3 | #include<stdlib.h> |
| 4 | #include "lynq/lynq_uci.h" |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | int main(int argc, const char *argv[]) |
| 10 | { |
| 11 | int ret = 0; |
| 12 | ret = lynq_set_netled_on(atoi(argv[1])); |
| 13 | if(ret){ |
| 14 | printf("[%s-%d] lynq_set_netled_on error\n", __FUNCTION__, __LINE__); |
| 15 | return -1; |
| 16 | } |
| 17 | ret = lynq_set_statusled_on(atoi(argv[1])); |
| 18 | if(ret){ |
| 19 | printf("[%s-%d] lynq_set_statusled_on error\n", __FUNCTION__, __LINE__); |
| 20 | return -1; |
| 21 | } |
| 22 | |
| 23 | return 0; |
| 24 | } |