Update RadioLib to master branch

This commit is contained in:
lewisxhe 2024-06-21 17:26:31 +08:00
commit e41f89b2de
83 changed files with 77813 additions and 2363 deletions

View file

@ -30,12 +30,14 @@ ITA2String::ITA2String(const ITA2String& ita2) {
}
ITA2String& ITA2String::operator=(const ITA2String& ita2) {
this->asciiLen = ita2.asciiLen;
this->ita2Len = ita2.ita2Len;
#if !RADIOLIB_STATIC_ONLY
this->strAscii = new char[asciiLen + 1];
#endif
strcpy(this->strAscii, ita2.strAscii);
if(&ita2 != this) {
this->asciiLen = ita2.asciiLen;
this->ita2Len = ita2.ita2Len;
#if !RADIOLIB_STATIC_ONLY
this->strAscii = new char[asciiLen + 1];
#endif
strcpy(this->strAscii, ita2.strAscii);
}
return(*this);
}