mirror of
https://gitee.com/moluo-tech/AT-Command
synced 2025-06-17 16:07:52 +00:00
Fix sample compilation errors.
This commit is contained in:
parent
7cad235d05
commit
0c389b6ce0
@ -133,10 +133,12 @@ static void sample_show_memory(void)
|
|||||||
*/
|
*/
|
||||||
static void sample_singlline(void)
|
static void sample_singlline(void)
|
||||||
{
|
{
|
||||||
|
at_attr_t attr;
|
||||||
|
at_attr_deinit(&attr);
|
||||||
// => AT+CSQ
|
// => AT+CSQ
|
||||||
// <= +CSQ:<rssi>,<ber>
|
// <= +CSQ:<rssi>,<ber>
|
||||||
// <= OK
|
// <= OK
|
||||||
at_send_singlline(at_obj, NULL, 200, 1, "AT+CSQ");
|
at_send_singlline(at_obj, &attr, "AT+CSQ");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Custom malloc for AT component.
|
* @brief Custom malloc for AT component.
|
||||||
|
Loading…
Reference in New Issue
Block a user