From 135a1e93cb9b3a859c4269a94ababe33b3558f9a Mon Sep 17 00:00:00 2001 From: XaviDCR92 Date: Sun, 25 Nov 2018 12:32:16 +0100 Subject: * LEVEL3.PLT was incorrectly using Windows CRLF end of line. * When assigning a parking slot, busy parking slots cannot be selected. Some work TODO yet, though. --- Source/System.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/System.h') diff --git a/Source/System.h b/Source/System.h index 90c1969..33a5758 100644 --- a/Source/System.h +++ b/Source/System.h @@ -81,7 +81,7 @@ bool SystemContains_u8(const uint8_t value, const uint8_t* const buffer, const s 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); +bool SystemArrayCompare(const unsigned short* const arr1, const unsigned short* const arr2, const size_t sz); // Prints stack pointer address using Serial_printf() void SystemPrintStackPointerAddress(void); @@ -92,7 +92,7 @@ void SystemCheckStack(void); // Looks for string "str" inside a string array pointed to by "array". // Returns index inside string array on success, -1 if not found. -int32_t SystemIndexOfStringArray(char* str, char** array); +int32_t SystemIndexOfStringArray(const char* str, const char* const* array); // Function overload for uint16_t data type. int32_t SystemIndexOf_U16(const uint16_t value, const uint16_t* array, const uint32_t sz); -- cgit v1.2.3