Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/fc/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ typedef enum {
FEATURE_PWM_OUTPUT_ENABLE = 1 << 28,
FEATURE_OSD = 1 << 29,
FEATURE_FW_LAUNCH = 1 << 30,
FEATURE_FW_AUTOTRIM = 1 << 31,
FEATURE_FW_AUTOTRIM = 1U << 31,
} features_e;

typedef struct systemConfig_s {
Expand Down
4 changes: 2 additions & 2 deletions src/main/io/dashboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ static const char* const gpsFixTypeText[] = {
"3D"
};

static const char* tickerCharacters = "|/-\\"; // use 2/4/8 characters so that the divide is optimal.
#define TICKER_CHARACTER_COUNT (sizeof(tickerCharacters) / sizeof(char))
static const char tickerCharacters[] = "|/-\\"; // use 2/4/8 characters so that the divide is optimal.
#define TICKER_CHARACTER_COUNT (sizeof(tickerCharacters) - 1)

static timeUs_t nextPageAt;
static bool forcePageChange;
Expand Down
5 changes: 5 additions & 0 deletions src/main/rx/crsf.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ STATIC_UNIT_TESTED void crsfDataReceive(uint16_t c, void *rxCallbackData)
// full frame length includes the length of the address and framelength fields
const int fullFrameLength = crsfFramePosition < 3 ? 5 : crsfFrame.frame.frameLength + CRSF_FRAME_LENGTH_ADDRESS + CRSF_FRAME_LENGTH_FRAMELENGTH;

if (fullFrameLength > CRSF_FRAME_SIZE_MAX) {
crsfFramePosition = 0;
return;
}

if (crsfFramePosition < fullFrameLength) {
crsfFrame.bytes[crsfFramePosition++] = (uint8_t)c;
crsfFrameDone = crsfFramePosition < fullFrameLength ? false : true;
Expand Down
2 changes: 1 addition & 1 deletion src/main/sensors/temperature.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ static void newSensorCheckAndEnter(uint8_t type, uint64_t addr)

void temperatureInit(void)
{
memset(sensorStatus, 0, sizeof(sensorStatus) * sizeof(*sensorStatus));
memset(sensorStatus, 0, sizeof(sensorStatus));

sensorsSet(SENSOR_TEMP);

Expand Down