From 95cb54cedefb086fdaa69a6daea5d9507bfd86fc Mon Sep 17 00:00:00 2001 From: wami Date: Fri, 17 Feb 2017 07:43:59 +0900 Subject: [PATCH] [fix] return add --- error: no return statement in function returning non-void (#205) --- libraries/WiFiClientSecure/src/WiFiClientSecure.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/WiFiClientSecure/src/WiFiClientSecure.cpp b/libraries/WiFiClientSecure/src/WiFiClientSecure.cpp index 51d063b2..8c8ddc8b 100644 --- a/libraries/WiFiClientSecure/src/WiFiClientSecure.cpp +++ b/libraries/WiFiClientSecure/src/WiFiClientSecure.cpp @@ -83,12 +83,12 @@ void WiFiClientSecure::stop() int WiFiClientSecure::connect(IPAddress ip, uint16_t port) { - connect(ip, port, _CA_cert, _cert, _private_key); + return connect(ip, port, _CA_cert, _cert, _private_key); } int WiFiClientSecure::connect(const char *host, uint16_t port) { - connect(host, port, _CA_cert, _cert, _private_key); + return connect(host, port, _CA_cert, _cert, _private_key); } int WiFiClientSecure::connect(IPAddress ip, uint16_t port, unsigned char *_CA_cert, unsigned char *_cert, unsigned char *_private_key)