From ce0027e87fe9be70000e53f52f185321bae3e35e Mon Sep 17 00:00:00 2001 From: Xavier ASUS Date: Sat, 24 Nov 2018 11:56:04 +0100 Subject: Aircraft are now auto-locked when entering "ShowAircraftData" menu. Minor fixes and improvements. Path is shown when selecting a moving aircraft. --- Source/System.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/System.h') diff --git a/Source/System.h b/Source/System.h index 12c0079..90c1969 100644 --- a/Source/System.h +++ b/Source/System.h @@ -75,10 +75,10 @@ volatile uint64_t SystemGetGlobalTimer(void); volatile bool SystemIsBusy(void); // Returns whether indicated value is contained inside buffer -bool SystemContains_u8(uint8_t value, uint8_t* buffer, size_t sz); +bool SystemContains_u8(const uint8_t value, const uint8_t* const buffer, const size_t sz); // Overload for uint16_t -bool SystemContains_u16(uint16_t value, uint16_t* buffer, size_t sz); +bool SystemContains_u16(const uint16_t value, const uint16_t* const buffer, const size_t sz); // Compares two arrays of unsigned short type. bool SystemArrayCompare(unsigned short* arr1, unsigned short* arr2, size_t sz); @@ -95,10 +95,10 @@ void SystemCheckStack(void); int32_t SystemIndexOfStringArray(char* str, char** array); // Function overload for uint16_t data type. -int32_t SystemIndexOf_U16(uint16_t value, uint16_t* array, uint32_t sz); +int32_t SystemIndexOf_U16(const uint16_t value, const uint16_t* array, const uint32_t sz); // Function overload for uint8_t data type. -int32_t SystemIndexOf_U8(uint8_t value, uint8_t* array, uint32_t from, uint32_t sz); +int32_t SystemIndexOf_U8(const uint8_t value, const uint8_t* const array, const uint32_t from, const uint32_t sz); // Returns frames per second. volatile uint8_t SystemGetFPS(void); -- cgit v1.2.3