调整位置logi
This commit is contained in:
parent
a93e232d70
commit
aa2198583e
@ -100,8 +100,8 @@ void snake_compare(rt_uint8_t key, rt_uint8_t repeat)
|
|||||||
{
|
{
|
||||||
const char *str = "OK\n";
|
const char *str = "OK\n";
|
||||||
// rt_strncpy(str,"OK\n",10);
|
// rt_strncpy(str,"OK\n",10);
|
||||||
rt_device_write(serial, 0, str, rt_strlen(str));
|
|
||||||
LOG_I("str=%s",str);
|
LOG_I("str=%s",str);
|
||||||
|
rt_device_write(serial, 0, str, rt_strlen(str));
|
||||||
if (page_chosen == 4&& page_stop == 0)
|
if (page_chosen == 4&& page_stop == 0)
|
||||||
{
|
{
|
||||||
// rt_event_send(&my_event, EVENT_MQTT_ENABLE);
|
// rt_event_send(&my_event, EVENT_MQTT_ENABLE);
|
||||||
@ -145,9 +145,9 @@ void myir_entry(void *parameter)
|
|||||||
{
|
{
|
||||||
/* 读取到红外数据,红灯亮起 */
|
/* 读取到红外数据,红灯亮起 */
|
||||||
rt_pin_write(PIN_LED_R, PIN_LOW);
|
rt_pin_write(PIN_LED_R, PIN_LOW);
|
||||||
snake_compare(infrared_data.data.nec.key, infrared_data.data.nec.repeat);
|
|
||||||
LOG_I("RECEIVE OK: addr:0x%02X key:0x%02X repeat:%d", infrared_data.data.nec.addr,
|
LOG_I("RECEIVE OK: addr:0x%02X key:0x%02X repeat:%d", infrared_data.data.nec.addr,
|
||||||
infrared_data.data.nec.key, infrared_data.data.nec.repeat);
|
infrared_data.data.nec.key, infrared_data.data.nec.repeat);
|
||||||
|
snake_compare(infrared_data.data.nec.key, infrared_data.data.nec.repeat);
|
||||||
}
|
}
|
||||||
rt_thread_mdelay(50);
|
rt_thread_mdelay(50);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user