Skip to content

Commit

Permalink
Make code exit if starting angle not found
Browse files Browse the repository at this point in the history
  • Loading branch information
abnv-goyal committed Nov 16, 2024
1 parent 1e31620 commit 69dce12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TunePID.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ int main(int argc, char** argv) {

if (!starting_angle_data_point.isValid()) {
LOG_F(WARNING, "STARTING ANGLE DATA NOT FOUND");
exit(1);
}
// throws bad_datapoint_access if the data point is not valid
int32_t starting_angle = starting_angle_data_point.getData();

int32_t angle_target = starting_angle;
Expand Down

0 comments on commit 69dce12

Please sign in to comment.