diff --git a/ESP-IDF_Robot_RC/main/espnow_example_main.c b/ESP-IDF_Robot_RC/main/espnow_example_main.c index 795e0add0..0f80c16f6 100755 --- a/ESP-IDF_Robot_RC/main/espnow_example_main.c +++ b/ESP-IDF_Robot_RC/main/espnow_example_main.c @@ -99,6 +99,8 @@ void sendData (void) { get_joystick_xy(&x, &y); ESP_LOGI("(x, y)", "[ %d, %d ]", x, y); + buffer.x_axis = x; + buffer.y_axis = y; // Display brief summary of data being sent. ESP_LOGI(TAG, "Joystick (x,y) position ( %d, %d )", buffer.x_axis, buffer.y_axis);