OTA utils upd for data & ESP, compilation fix ESP

This commit is contained in:
2021-06-13 14:01:43 +03:00
parent 50cec6abf7
commit 3ac5480735
16 changed files with 26 additions and 20 deletions

View File

@@ -108,7 +108,7 @@ bool out_UARTbridge::getConfig()
aJsonObject * debugPortObj=aJson.getObjectItem(item->itemArg, "port");
if (debugIPObj)
inet_aton(debugIPObj->valuestring, targetIP);
_inet_aton(debugIPObj->valuestring, targetIP);
if (debugPortObj) targetPort = debugPortObj->valueint;

View File

@@ -325,7 +325,7 @@ void ReadUniqueID( uint32_t * pdwUniqueID )
}
int inet_aton(const char* aIPAddrString, IPAddress& aResult)
int _inet_aton(const char* aIPAddrString, IPAddress& aResult)
{
// See if we've been given a valid IP address
const char* p =aIPAddrString;
@@ -395,7 +395,7 @@ int inet_aton(const char* aIPAddrString, IPAddress& aResult)
* @return either pointer to buf which now holds the ASCII
* representation of addr or NULL if buf was too small
*/
char *inet_ntoa_r(IPAddress addr, char *buf, int buflen)
char *_inet_ntoa_r(IPAddress addr, char *buf, int buflen)
{
short n;
char intbuf[4];