Skip to content

Commit

Permalink
Fix motor driver and remove unnecessary include
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperChamp234 committed Jan 31, 2024
1 parent 0fb2c89 commit ff5df4a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/motor_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
* @param motor_id set it as MOTOR_A_0, MOTOR_A_1 to select the appropriate motor to bind to the handle.
* @return
* - ESP_OK: Success
* - ESP_ERR_INVALID_ARG: Invalid argument
* - ESP_FAIL: Failed
* - ESP_ERR_INVALID_ARG: Invalid argument
* - ESP_FAIL: Failed
*/
esp_err_t enable_motor_driver(motor_handle_t *motor, int motor_id);

Expand All @@ -67,4 +67,4 @@ esp_err_t set_motor_speed(motor_handle_t motor, int direction, float duty_cycle)
*/
int get_motor_driver_status();

#endif
#endif
1 change: 0 additions & 1 deletion include/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#ifndef _UTILS_H
#define _UTILS_H

#include "esp_log.h"

/**
* @brief Bound a value in a range [min, max]
Expand Down

0 comments on commit ff5df4a

Please sign in to comment.