diff --git a/src/HAP.cpp b/src/HAP.cpp index 6f1f2c1..822f84e 100644 --- a/src/HAP.cpp +++ b/src/HAP.cpp @@ -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; diff --git a/src/HomeSpan.h b/src/HomeSpan.h index 7f72fb3..1c707d0 100644 --- a/src/HomeSpan.h +++ b/src/HomeSpan.h @@ -33,6 +33,7 @@ #include #include +#include #include #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 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 SpanCharacteristic *setRange(A min, B max, S step=0){