Skip to content

Commit

Permalink
Merge pull request #747 from JAndrassy/sslclient_cut_dep
Browse files Browse the repository at this point in the history
MbedSSLClient - remove unnecessary dependecy to specific BlockDevice
  • Loading branch information
facchinm authored Nov 13, 2023
2 parents da1b13a + e1240ee commit 3142985
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libraries/SocketWrapper/src/MbedSSLClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "MbedClient.h"
#include <FATFileSystem.h>
#include <MBRBlockDevice.h>
#include <QSPIFBlockDevice.h>

extern const char CA_CERTIFICATES[];

Expand Down Expand Up @@ -58,7 +57,7 @@ class MbedSSLClient : public arduino::MbedClient {
int setRootCA() {
mbed::BlockDevice* root = mbed::BlockDevice::get_default_instance();
int err = root->init();
if( err != QSPIF_BD_ERROR_OK) {
if( err != 0) {
return err;
}

Expand Down

0 comments on commit 3142985

Please sign in to comment.