reducing warnings
This commit is contained in:
parent
9f33df9574
commit
08e3dd835d
|
@ -306,11 +306,11 @@ static void handleGetStructContent(ts_channel_s *tsChannel, int structId, int si
|
|||
* read log file content for rusEfi console
|
||||
*/
|
||||
static void handleReadFileContent(ts_channel_s *tsChannel, short fileId, short offset, short length) {
|
||||
#if EFI_FILE_LOGGING
|
||||
readLogFileContent(tsChannel->crcReadBuffer, fileId, offset, length);
|
||||
#else
|
||||
//#if EFI_FILE_LOGGING
|
||||
// readLogFileContent(tsChannel->crcReadBuffer, fileId, offset, length);
|
||||
//#else
|
||||
UNUSED(tsChannel); UNUSED(fileId); UNUSED(offset); UNUSED(length);
|
||||
#endif /* EFI_FILE_LOGGING */
|
||||
//#endif /* EFI_FILE_LOGGING */
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -300,10 +300,10 @@ static void listDirectory(const char *path) {
|
|||
|
||||
static int errorReported = FALSE; // this is used to report the error only once
|
||||
|
||||
#if 0
|
||||
void readLogFileContent(char *buffer, short fileId, short offset, short length) {
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Appends specified line to the current log file
|
||||
|
@ -359,8 +359,10 @@ static void mmcUnMount(void) {
|
|||
scheduleMsg(&logger, "MMC/SD card removed");
|
||||
}
|
||||
|
||||
#if HAL_USE_USB_MSD
|
||||
#define RAMDISK_BLOCK_SIZE 512U
|
||||
static uint8_t blkbuf[RAMDISK_BLOCK_SIZE];
|
||||
#endif /* HAL_USE_USB_MSD */
|
||||
|
||||
/*
|
||||
* MMC card mount.
|
||||
|
@ -433,6 +435,7 @@ static void MMCmount(void) {
|
|||
}
|
||||
|
||||
static THD_FUNCTION(MMCmonThread, arg) {
|
||||
(void)arg;
|
||||
chRegSetThreadName("MMC_Monitor");
|
||||
|
||||
while (true) {
|
||||
|
|
|
@ -80,7 +80,7 @@ static void shaftPeriodCallback(bool isPrimary) {
|
|||
}
|
||||
|
||||
void turnOnTriggerInputPin(const char *msg, int index, bool isTriggerShaft) {
|
||||
|
||||
(void)msg;
|
||||
brain_pin_e brainPin = isTriggerShaft ? CONFIGB(triggerInputPins)[index] : engineConfiguration->camInputs[index];
|
||||
if (brainPin == GPIO_UNASSIGNED) {
|
||||
return;
|
||||
|
@ -103,7 +103,7 @@ void turnOffTriggerInputPin(brain_pin_e brainPin) {
|
|||
}
|
||||
|
||||
void setPrimaryChannel(brain_pin_e brainPin) {
|
||||
|
||||
(void)brainPin;
|
||||
}
|
||||
|
||||
/*==========================================================================*/
|
||||
|
|
Loading…
Reference in New Issue