[HC05] Reworked driver exclusion
This commit is contained in:
parent
36a44ed44d
commit
535e35a3db
2 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef _RADIOLIB_HC05_H
|
||||
#if !defined(_RADIOLIB_HC05_H) && !defined(RADIOLIB_EXCLUDE_HC05)
|
||||
#define _RADIOLIB_HC05_H
|
||||
|
||||
#include "../../ISerial.h"
|
||||
|
|
Loading…
Add table
Reference in a new issue