mirror of https://github.com/MLXXXp/Arduboy2.git
Make writeUnitName() const-correct
Changed the writeUnitName() parameter from "char* name" to "const char* name". This will prevent warnings or errors when a string literal or an array of type "const char" is passed to it.
This commit is contained in:
parent
30fb448db5
commit
5563599c6d
|
@ -1099,7 +1099,7 @@ uint8_t Arduboy2Base::readUnitName(char* name)
|
|||
return dest;
|
||||
}
|
||||
|
||||
void Arduboy2Base::writeUnitName(char* name)
|
||||
void Arduboy2Base::writeUnitName(const char* name)
|
||||
{
|
||||
bool done = false;
|
||||
uint8_t dest = eepromUnitName;
|
||||
|
|
|
@ -1207,7 +1207,7 @@ class Arduboy2Base : public Arduboy2Core
|
|||
* \see readUnitName() writeUnitID() Arduboy2::bootLogoExtra()
|
||||
* ARDUBOY_UNIT_NAME_BUFFER_SIZE ARDUBOY_UNIT_NAME_LEN Arduboy2::font5x7
|
||||
*/
|
||||
void writeUnitName(char* name);
|
||||
void writeUnitName(const char* name);
|
||||
|
||||
/** \brief
|
||||
* Read the "Show Boot Logo" flag in system EEPROM.
|
||||
|
|
Loading…
Reference in New Issue