Skip to content

Commit

Permalink
avoid blocking
Browse files Browse the repository at this point in the history
  • Loading branch information
sstaub committed Dec 26, 2021
1 parent 695d883 commit 8dd3f83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=NextionX2
version=1.0.0
version=1.1.0
author=Stefan Staub
maintainer=Stefan Staub <email@domain.com>
sentence=A universal alternative and more flexible Nextion library
Expand Down
4 changes: 2 additions & 2 deletions src/NextionX2.h
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ NextionComPort::NextionComPort() {}
template <class nextionSeriaType>
void NextionComPort::begin(nextionSeriaType &nextionSerial, uint16_t baud) {
nextionSerial.begin(baud);
while (!nextionSerial);
delay(100);
this->nextionSerial = &nextionSerial;
command("");
command("bkcmd=0");
Expand All @@ -501,7 +501,7 @@ void NextionComPort::begin(nextionSeriaType &nextionSerial, uint16_t baud) {
template <class debugSerialType>
void NextionComPort::debug(debugSerialType &debugSerial, uint16_t baud) {
debugSerial.begin(baud);
while (!debugSerial);
delay(100);
this->debugSerial = &debugSerial;
command("bkcmd=3");
}
Expand Down

0 comments on commit 8dd3f83

Please sign in to comment.