Skip to content

Commit

Permalink
fixed a bug in softserial
Browse files Browse the repository at this point in the history
  • Loading branch information
Heltec-Aaron-Lee committed Aug 29, 2022
1 parent 5f6cb1b commit 054ea91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/Basics/src/softSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pbuffer(0)

}

//IO模拟串口初始�?

void softSerial::begin(uint16_t Baudrate)
{
timedelay = 1000000/Baudrate;
Expand Down Expand Up @@ -126,7 +126,7 @@ void softSerial::receiverBegin(void)
delayTiker((uint32_t)(timedelay * tikerInUs)-tcnt);

uint8_t data = 0;
auto start = millis();
uint32_t start = millis();
do {
for( uint8_t count = 0; count < 8; count++){
data |= DIRECT_READ(_rxbaseReg, _rxbitmask)<<count;
Expand Down

0 comments on commit 054ea91

Please sign in to comment.