Replace buffer lock magic numbers with defines (#5217)
* replace magic numbers with defines
This commit is contained in:
@@ -646,7 +646,7 @@ void handleNotifications()
|
||||
// API over UDP
|
||||
udpIn[packetSize] = '\0';
|
||||
|
||||
if (requestJSONBufferLock(18)) {
|
||||
if (requestJSONBufferLock(JSON_LOCK_NOTIFY)) {
|
||||
if (udpIn[0] >= 'A' && udpIn[0] <= 'Z') { //HTTP API
|
||||
String apireq = "win"; apireq += '&'; // reduce flash string usage
|
||||
apireq += (char*)udpIn;
|
||||
|
||||
Reference in New Issue
Block a user