Minor cleanups

This commit is contained in:
Josh Stewart 2019-01-26 20:33:25 +13:00
parent ce8502c7e2
commit f8842c9935
3 changed files with 4 additions and 2 deletions

View File

@ -55,7 +55,8 @@ uint16_t freeRam()
if(__brkval == 0) { currentVal = (int) &__heap_start; }
else { currentVal = (int) __brkval; }
//return (uint16_t) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval); // cppcheck-suppress misra-c2012-12.1
//Old version:
//return (uint16_t) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval);
return (uint16_t) &v - currentVal; //cppcheck-suppress misra-c2012-11.4
}

View File

@ -13,6 +13,7 @@
#include "decoders.h"
#include "corrections.h"
#include "idle.h"
#include "table.h"
#include BOARD_H //Note that this is not a real file, it is defined in globals.h.
void initialiseAll()

View File

@ -51,7 +51,7 @@ struct table3D {
};
//void table3D_setSize(struct table3D *targetTable, byte);
void table3D_setSize(table3D, byte);
void table3D_setSize(struct table3D *targetTable, byte);
/*
3D Tables have an origin (0,0) in the top left hand corner. Vertical axis is expressed first.