Skip to content

Commit

Permalink
changed Name to snake_case EZ-Robotics#65
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhlb committed Oct 24, 2022
1 parent 76a3360 commit 0ab1f66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/EZ-Template/auton.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Auton {
public:
Auton();
Auton(std::string, std::function<void()>);
std::string Name;
std::string name;
std::function<void()> auton_call;

private:
Expand Down
4 changes: 2 additions & 2 deletions src/EZ-Template/auton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include "main.h"

Auton::Auton() {
Name = "";
name = "";
auton_call = nullptr;
}
Auton::Auton(std::string name, std::function<void()> callback) {
Name = name;
name = name;
auton_call = callback;
}
2 changes: 1 addition & 1 deletion src/EZ-Template/auton_selector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void AutonSelector::print_selected_auton() {
if (auton_count == 0) return;
for (int i = 0; i < 8; i++)
pros::lcd::clear_line(i);
ez::screen_print("Page " + std::to_string(current_auton_page + 1) + "\n" + Autons[current_auton_page].Name);
ez::screen_print("Page " + std::to_string(current_auton_page + 1) + "\n" + Autons[current_auton_page].name);
}

void AutonSelector::call_selected_auton() {
Expand Down

0 comments on commit 0ab1f66

Please sign in to comment.