diff options
| author | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-24 11:56:04 +0100 |
|---|---|---|
| committer | Xavier ASUS <xavi92psx@gmail.com> | 2018-11-24 11:56:04 +0100 |
| commit | ce0027e87fe9be70000e53f52f185321bae3e35e (patch) | |
| tree | 5d6bab47da82f9d6e0ad935f3422ab04e81d820b /Source/System.h | |
| parent | d224f1c458870e9574be2d6105a8098010e3db70 (diff) | |
| download | airport-ce0027e87fe9be70000e53f52f185321bae3e35e.tar.gz | |
Aircraft are now auto-locked when entering "ShowAircraftData" menu.
Minor fixes and improvements.
Path is shown when selecting a moving aircraft.
Diffstat (limited to 'Source/System.h')
| -rw-r--r-- | Source/System.h | 8 |
1 files changed, 4 insertions, 4 deletions
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); |
