AP_CustomControl: Update README.md

Adding step for changes that need to be done in the AC_CustomControl_config.h file to prevent error while compilation.
This commit is contained in:
DisCoLabIITK 2024-07-28 16:46:10 +05:30 committed by Peter Barker
parent d9eabcf411
commit e929cc21b1
1 changed files with 7 additions and 0 deletions

View File

@ -217,6 +217,13 @@ default:
return;
}
```
Add the following lines in the `AC_CustomControl_config.h` file.
```
#ifndef AP_CUSTOMCONTROL_XYZ_ENABLED
#define AP_CUSTOMCONTROL_XYZ_ENABLED AP_CUSTOMCONTROL_BACKEND_DEFAULT_ENABLED
#endif
```
8. This is the bare minimum to compile and run your custom controller. You can add controller related code to `AC_CustomControl_XYZ` file without changing anything else.