mirror of
https://github.com/alexandrebobkov/ESP-Nodes.git
synced 2025-08-18 22:07:15 +00:00
ESP-NOW Transmitter comments
This commit is contained in:
0
ESP32-IDF_ESPNOW-Transmitter/build/.ninja_lock
Normal file
0
ESP32-IDF_ESPNOW-Transmitter/build/.ninja_lock
Normal file
@@ -54,6 +54,15 @@ void wifi_init() {
|
||||
#endif
|
||||
}
|
||||
|
||||
void rc_send_data_task()
|
||||
{
|
||||
while (true) {
|
||||
if (esp_now_is_peer_exist(receiver_mac))
|
||||
sendData();
|
||||
vTaskDelay (250 / portTICK_PERIOD_MS);
|
||||
}
|
||||
}
|
||||
|
||||
void app_main(void)
|
||||
{
|
||||
joystick_adc_init();
|
||||
|
@@ -135,11 +135,3 @@ void sendData (void) {
|
||||
}
|
||||
}
|
||||
|
||||
void rc_send_data_task()
|
||||
{
|
||||
while (true) {
|
||||
if (esp_now_is_peer_exist(receiver_mac))
|
||||
sendData();
|
||||
vTaskDelay (250 / portTICK_PERIOD_MS);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user