Cleanup of a few compiler warnings

This commit is contained in:
Josh Stewart 2016-10-11 22:17:15 +11:00
parent 241314e42d
commit db469b17d8
2 changed files with 4 additions and 4 deletions

View File

@ -30,12 +30,12 @@ void clearError(byte errorID)
else if(errorID == errorCodes[3]) { clearedError = 3; }
else return; //Occurs when the error we're being asked to clear is not currently one of the active errors
errorCodes[clearedError] == ERR_NONE;
errorCodes[clearedError] = ERR_NONE;
//Clear the required error and move any from above it 'down' in the error array
for (byte x=clearedError; x < (errorCount-1); x++)
{
errorCodes[x] == errorCodes[x+1];
errorCodes[x+1] == ERR_NONE;
errorCodes[x] = errorCodes[x+1];
errorCodes[x+1] = ERR_NONE;
}
errorCount--;

View File

@ -4,7 +4,7 @@ Copyright (C) Josh Stewart
A full copy of the license may be found in the projects root directory
*/
int tempReading;
unsigned int tempReading;
void instanteneousMAPReading()
{