From 2f546054c659cbf8fcfa9a0702d5795f48a845f6 Mon Sep 17 00:00:00 2001 From: Tove Rumar Date: Mon, 12 Aug 2024 14:41:58 +0200 Subject: [PATCH] Add define to configure motors spinning or not --- src/deck/drivers/src/test/radiotest.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/deck/drivers/src/test/radiotest.c b/src/deck/drivers/src/test/radiotest.c index 8de2bfb4b3..c8b13c48dc 100644 --- a/src/deck/drivers/src/test/radiotest.c +++ b/src/deck/drivers/src/test/radiotest.c @@ -39,6 +39,8 @@ #include "param.h" #include "platform_defaults.h" +#define SHOULD_SPIN_MOTORS 0 + //Hardware configuration static bool isInit; static uint8_t channel = 80; @@ -106,7 +108,9 @@ static void radiotestInit(DeckInfo *info) return; xTaskCreate(radiotestTask, "RADIOTEST", configMINIMAL_STACK_SIZE, NULL, 1, NULL); - xTaskCreate(spinMotorsTask, "spinMotors", configMINIMAL_STACK_SIZE, NULL, 1, NULL); + if (SHOULD_SPIN_MOTORS) { + xTaskCreate(spinMotorsTask, "spinMotors", configMINIMAL_STACK_SIZE, NULL, 1, NULL); + } isInit = true; }