Addresses compiler warnings in Arduino-ESP32 2.0.0
This commit is contained in:
parent
28356c327a
commit
edf5522ca0
|
|
@ -719,7 +719,7 @@ int HAPClient::postPairVerifyURL(){
|
|||
|
||||
memcpy(iosCurveKey,tlv8.buf(kTLVType_PublicKey),32); // save iosCurveKey (will persist until end of verification process)
|
||||
|
||||
crypto_scalarmult_curve25519(sharedCurveKey,secretCurveKey,iosCurveKey); // generate (and persist) Pair Verify SharedSecret CurveKey from Accessory's Curve25519 secret key and Controller's Curve25519 public key (32 bytes)
|
||||
int _x = crypto_scalarmult_curve25519(sharedCurveKey,secretCurveKey,iosCurveKey); // generate (and persist) Pair Verify SharedSecret CurveKey from Accessory's Curve25519 secret key and Controller's Curve25519 public key (32 bytes)
|
||||
|
||||
uint8_t *accessoryPairingID = accessory.ID; // set accessoryPairingID
|
||||
size_t accessoryPairingIDLen = 17;
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
#include <Arduino.h>
|
||||
#include <unordered_map>
|
||||
#include <vector>
|
||||
#include <nvs.h>
|
||||
|
||||
#include "Settings.h"
|
||||
|
|
@ -301,7 +302,8 @@ struct SpanCharacteristic{
|
|||
sprintf(c,"\"%s\"",u.STRING);
|
||||
return(String(c));
|
||||
} // switch
|
||||
} // str()
|
||||
return(String()); // included to prevent compiler warnings
|
||||
}
|
||||
|
||||
void uvSet(UVal &u, const char *val){
|
||||
u.STRING=val;
|
||||
|
|
@ -331,7 +333,7 @@ struct SpanCharacteristic{
|
|||
u.FLOAT=(double)val;
|
||||
break;
|
||||
} // switch
|
||||
} // set()
|
||||
}
|
||||
|
||||
template <class T> T uvGet(UVal &u){
|
||||
|
||||
|
|
@ -354,7 +356,8 @@ struct SpanCharacteristic{
|
|||
Serial.print("\n*** WARNING: Can't use getVal() or getNewVal() with string Characteristics.\n\n");
|
||||
return(0);
|
||||
}
|
||||
} // get()
|
||||
return(0); // included to prevent compiler warnings
|
||||
}
|
||||
|
||||
template <typename A, typename B, typename S=int> SpanCharacteristic *setRange(A min, B max, S step=0){
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue