Skip to content

Commit

Permalink
AP_Follow: correct defaulting of AP_FOLLOW_ENABLED
Browse files Browse the repository at this point in the history
and clarify a closing endif
  • Loading branch information
peterbarker committed Dec 8, 2023
1 parent 34ed4d1 commit cc18c82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Follow/AP_Follow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,4 +539,4 @@ AP_Follow &follow()

}

#endif
#endif // AP_FOLLOW_ENABLED
2 changes: 2 additions & 0 deletions libraries/AP_Follow/AP_Follow_config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#include <AP_HAL/AP_HAL_Boards.h>

#ifndef AP_FOLLOW_ENABLED
#define AP_FOLLOW_ENABLED 1
#endif

0 comments on commit cc18c82

Please sign in to comment.