Fix warnings
This commit is contained in:
@@ -593,9 +593,6 @@ static status_t handle_command_internal(uint8_t *packet, uint32_t packetLength)
|
||||
else
|
||||
{
|
||||
#if FIXED_BUSPAL_BOOTLOADER
|
||||
size_t offset;
|
||||
int res;
|
||||
|
||||
status = kStatus_Success; /* set default */
|
||||
res = WaitForStartByte(rxBuf, &offset);
|
||||
if (res==1 && offset==1)
|
||||
|
||||
@@ -110,7 +110,7 @@ status_t serial_packet_read(const peripheral_descriptor_t *self,
|
||||
|
||||
// Receive the framing data packet.
|
||||
isPacketOk = true;
|
||||
status_t status = read_data_packet(&framingPacket, g_serialContext.data, packetType);
|
||||
status = read_data_packet(&framingPacket, g_serialContext.data, packetType);
|
||||
if (status != kStatus_Success)
|
||||
{
|
||||
// No packet available.
|
||||
|
||||
@@ -109,7 +109,7 @@ void LedDisplay_SetIcon(led_display_icon_t icon, bool isEnabled)
|
||||
|
||||
void LedDisplay_UpdateIcons(void)
|
||||
{
|
||||
for (uint8_t i=0; i<=LedDisplayIcon_Last; i++) {
|
||||
for (led_display_icon_t i=0; i<=LedDisplayIcon_Last; i++) {
|
||||
LedDisplay_SetIcon(i, ledIconStates[i]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ static void hardwareConfigurationReadFinished(void)
|
||||
EEPROM_LaunchTransfer(EepromOperation_Read, ConfigBufferId_StagingUserConfig, userConfigurationReadFinished);
|
||||
}
|
||||
|
||||
void main(void)
|
||||
int main(void)
|
||||
{
|
||||
InitClock();
|
||||
InitPeripherals();
|
||||
|
||||
Reference in New Issue
Block a user