Skip to content

Commit 93bb696

Browse files
committed
feat(listen-func): add listen function for external call
1 parent 0c56df2 commit 93bb696

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/rdm6300.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,8 @@ uint32_t Rdm6300::get_tag_id(void)
117117
_tag_id = 0;
118118
return tag_id;
119119
}
120+
121+
void Rdm6300::listen(void)
122+
{
123+
_serial->listen();
124+
}

src/rdm6300.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class Rdm6300
4040
bool update(void);
4141
uint32_t get_tag_id(void);
4242
bool is_tag_near(void);
43+
void listen(void);
4344
private:
4445
#ifdef RDM6300_HARDWARE_SERIAL
4546
HardwareSerial *_hardware_serial = NULL;

0 commit comments

Comments
 (0)