[HC05] Reworked driver exclusion

This commit is contained in:
jgromes 2020-06-30 10:42:23 +02:00
parent 36a44ed44d
commit 535e35a3db
2 changed files with 4 additions and 1 deletions

View file

@ -1,4 +1,5 @@
#include "HC05.h"
#if !defined(RADIOLIB_EXCLUDE_HC05)
HC05::HC05(Module* mod) : ISerial(mod) {
@ -9,3 +10,5 @@ void HC05::begin(long speed) {
_mod->baudrate = speed;
_mod->init(RADIOLIB_USE_UART);
}
#endif

View file

@ -1,4 +1,4 @@
#ifndef _RADIOLIB_HC05_H
#if !defined(_RADIOLIB_HC05_H) && !defined(RADIOLIB_EXCLUDE_HC05)
#define _RADIOLIB_HC05_H
#include "../../ISerial.h"