aboutsummaryrefslogtreecommitdiff
path: root/Source/System.c
diff options
context:
space:
mode:
authorXavier ASUS <xavi92psx@gmail.com>2018-11-24 11:56:04 +0100
committerXavier ASUS <xavi92psx@gmail.com>2018-11-24 11:56:04 +0100
commitce0027e87fe9be70000e53f52f185321bae3e35e (patch)
tree5d6bab47da82f9d6e0ad935f3422ab04e81d820b /Source/System.c
parentd224f1c458870e9574be2d6105a8098010e3db70 (diff)
downloadairport-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.c')
-rw-r--r--Source/System.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/System.c b/Source/System.c
index 5295e46..1b35de6 100644
--- a/Source/System.c
+++ b/Source/System.c
@@ -703,7 +703,7 @@ volatile bool SystemIsBusy(void)
* @return: true if value is contained inside buffer, false otherwise.
*
* ****************************************************************************/
-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)
{
size_t i = 0;
@@ -730,7 +730,7 @@ bool SystemContains_u8(uint8_t value, uint8_t* buffer, size_t sz)
* @return: true if value is contained inside buffer, false otherwise.
*
* ****************************************************************************/
-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)
{
size_t i = 0;
@@ -889,7 +889,7 @@ int32_t SystemIndexOfStringArray(char* str, char** array)
* @return Index for a variable "value" inside "array". -1 if it could not be found.
*
* ****************************************************************************************/
-int32_t SystemIndexOf_U16(uint16_t value, uint16_t* array, uint32_t sz)
+int32_t SystemIndexOf_U16(const uint16_t value, const uint16_t* const array, const uint32_t sz)
{
int32_t i;
@@ -917,7 +917,7 @@ int32_t SystemIndexOf_U16(uint16_t value, uint16_t* array, uint32_t sz)
*
* ****************************************************************************************/
-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)
{
int32_t i;