Fix indentation, restore proper include to app_custom

This commit is contained in:
Gavin Miller 2019-04-09 19:12:09 -06:00
parent 36a3e458a0
commit 9deee721f5
2 changed files with 2 additions and 2 deletions

View File

@ -231,7 +231,7 @@ static THD_FUNCTION(adc_thread, arg) {
} else { } else {
// When only one button input is available, use it differently depending on the control mode // When only one button input is available, use it differently depending on the control mode
if (config.ctrl_type == ADC_CTRL_TYPE_CURRENT_REV_BUTTON || if (config.ctrl_type == ADC_CTRL_TYPE_CURRENT_REV_BUTTON ||
config.ctrl_type == ADC_CTRL_TYPE_CURRENT_REV_BUTTON_BRAKE_CENTER || config.ctrl_type == ADC_CTRL_TYPE_CURRENT_REV_BUTTON_BRAKE_CENTER ||
config.ctrl_type == ADC_CTRL_TYPE_CURRENT_NOREV_BRAKE_BUTTON || config.ctrl_type == ADC_CTRL_TYPE_CURRENT_NOREV_BRAKE_BUTTON ||
config.ctrl_type == ADC_CTRL_TYPE_DUTY_REV_BUTTON) { config.ctrl_type == ADC_CTRL_TYPE_DUTY_REV_BUTTON) {
rev_button = !palReadPad(HW_ICU_GPIO, HW_ICU_PIN); rev_button = !palReadPad(HW_ICU_GPIO, HW_ICU_PIN);

View File

@ -17,7 +17,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "app.h" #include "conf_general.h"
#ifdef APP_CUSTOM_TO_USE #ifdef APP_CUSTOM_TO_USE
#include APP_CUSTOM_TO_USE #include APP_CUSTOM_TO_USE