mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 09:16:07 +03:00
Removing STM specific defines from common_pre, and other cleanups (#12982)
Removing STM specific defines from common_pre, and other cleanup
This commit is contained in:
parent
0d96c7ec77
commit
d5d3ee88be
16 changed files with 72 additions and 55 deletions
|
@ -74,7 +74,7 @@ extern "C" {
|
|||
TEST(LedStripTest, parseLedStripConfig)
|
||||
{
|
||||
// given
|
||||
memset(&ledStripStatusModeConfigMutable()->ledConfigs, 0, LED_MAX_STRIP_LENGTH);
|
||||
memset(&ledStripStatusModeConfigMutable()->ledConfigs, 0, LED_STRIP_MAX_LENGTH);
|
||||
|
||||
// and
|
||||
static const ledConfig_t expectedLedStripConfig[WS2811_LED_STRIP_LENGTH] = {
|
||||
|
@ -195,7 +195,7 @@ TEST(LedStripTest, parseLedStripConfig)
|
|||
TEST(LedStripTest, smallestGridWithCenter)
|
||||
{
|
||||
// given
|
||||
memset(&ledStripStatusModeConfigMutable()->ledConfigs, 0, LED_MAX_STRIP_LENGTH);
|
||||
memset(&ledStripStatusModeConfigMutable()->ledConfigs, 0, LED_STRIP_MAX_LENGTH);
|
||||
|
||||
// and
|
||||
static const ledConfig_t testLedConfigs[] = {
|
||||
|
@ -223,7 +223,7 @@ TEST(LedStripTest, smallestGridWithCenter)
|
|||
TEST(LedStripTest, smallestGrid)
|
||||
{
|
||||
// given
|
||||
memset(&ledStripStatusModeConfigMutable()->ledConfigs, 0, LED_MAX_STRIP_LENGTH);
|
||||
memset(&ledStripStatusModeConfigMutable()->ledConfigs, 0, LED_STRIP_MAX_LENGTH);
|
||||
|
||||
// and
|
||||
static const ledConfig_t testLedConfigs[] = {
|
||||
|
|
|
@ -43,13 +43,13 @@
|
|||
#define USE_SERVOS
|
||||
#define USE_TRANSPONDER
|
||||
|
||||
#ifndef LED_MAX_STRIP_LENGTH
|
||||
#ifndef LED_STRIP_MAX_LENGTH
|
||||
#ifdef USE_LED_STRIP_64
|
||||
#define LED_MAX_STRIP_LENGTH 64
|
||||
#define LED_STRIP_MAX_LENGTH 64
|
||||
#else
|
||||
#define LED_MAX_STRIP_LENGTH 32
|
||||
#define LED_STRIP_MAX_LENGTH 32
|
||||
#endif
|
||||
#endif // #ifndef LED_MAX_STRIP_LENGTH
|
||||
#endif // #ifndef LED_STRIP_MAX_LENGTH
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue