BT define the hal methods even if BT is disabled (but return false)

This commit is contained in:
me-no-dev 2017-05-06 18:50:20 +03:00
parent 768e57f285
commit 673f453da0
2 changed files with 15 additions and 4 deletions

View File

@ -64,5 +64,20 @@ bool btStop(){
return false;
}
#else
bool btStarted()
{
return false;
}
bool btStart()
{
return false;
}
bool btStop()
{
return false;
}
#endif

View File

@ -17,8 +17,6 @@
#include "esp32-hal.h"
#if CONFIG_BT_ENABLED
#ifdef __cplusplus
extern "C" {
#endif
@ -31,6 +29,4 @@ bool btStop();
}
#endif
#endif
#endif /* _ESP32_ESP32_HAL_BT_H_ */