Skip to content

Commit

Permalink
updated asr6601 i2c
Browse files Browse the repository at this point in the history
  • Loading branch information
Heltec-Aaron-Lee committed Jun 3, 2021
1 parent 1c3d9b3 commit e5a0b21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Binary file modified cores/asr6601/asr6601.a
Binary file not shown.
5 changes: 3 additions & 2 deletions cores/asr6601/peripheral/HardwareSerial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ bool HardwareSerial::begin(uint32_t baud, uint32_t config, int rxPin, int txPin,

void HardwareSerial::updateBaudRate(unsigned long baud)
{
_baud = baud;
uartStart(baud,_config,_rxPin,_txPin);
}

Expand Down Expand Up @@ -120,8 +121,8 @@ size_t HardwareSerial::write(const uint8_t *buffer, size_t size)

uint32_t HardwareSerial::baudRate()
{
//return _baud;
return uartGetBaudRate(_uart);
return _baud;
//return uartGetBaudRate(_uart);
}
HardwareSerial::operator bool() const
{
Expand Down
2 changes: 1 addition & 1 deletion cores/asr6601/peripheral/Wire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ TwoWire::TwoWire(uint8_t bus_num)
,txQueued(0)
,transmitting(0)
,last_error(I2C_ERROR_OK)
,_timeOutMillis(500)
,_timeOutMillis(50)
{}

TwoWire::~TwoWire()
Expand Down

0 comments on commit e5a0b21

Please sign in to comment.