From 57ae40ef2fea0ada518d28dcb6c285493fe2b71c Mon Sep 17 00:00:00 2001 From: Alexander B Date: Sat, 4 Jan 2025 21:24:11 -0500 Subject: [PATCH] RC --- ESP-IDF_Robot_RC/build/.ninja_lock | 0 ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref | 2 +- ESP-IDF_Robot_RC/main/joystick.h | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 ESP-IDF_Robot_RC/build/.ninja_lock diff --git a/ESP-IDF_Robot_RC/build/.ninja_lock b/ESP-IDF_Robot_RC/build/.ninja_lock new file mode 100644 index 000000000..e69de29bb diff --git a/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref b/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref index 8b3619647..49a12de70 100644 --- a/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref +++ b/ESP-IDF_Robot_RC/build/CMakeFiles/git-data/head-ref @@ -1 +1 @@ -b5189db5829b7258aba44a44e72710173aa4e84e +c5fdea1ad6131984922363f6869b7dce3fa439ec diff --git a/ESP-IDF_Robot_RC/main/joystick.h b/ESP-IDF_Robot_RC/main/joystick.h index 492a6d968..d92760da6 100644 --- a/ESP-IDF_Robot_RC/main/joystick.h +++ b/ESP-IDF_Robot_RC/main/joystick.h @@ -8,7 +8,7 @@ static unsigned uint8_t x, y; adc_oneshot_unit_handle_t adc1_x_handle; static void joystick_get_raw_xy() { - ESP_ERROR_CHECK(adc_oneshot_read(adc1_x_handle, ADC1_CHAN0, &x)); + ESP_ERROR_CHECK(adc_oneshot_read(adc1_x_handle, ADC1_CHANNEL_0, &x)); } #endif \ No newline at end of file