v0.5.0
- добавлена поддержка платы ELBEAR ACE-NANO; - добавлена поддержка плат ELSOMIK OEM и SE; - добавлена возможность работы в режиме отладки для всех плат, входящих в состав пакета. Доступно для версии ArduinoIDE 2 и выше; - добавлена поддержка библиотеки FreeRTOS; - добавлена поддержка библиотеки IRremote; - добавлена поддержка библиотеки OneWire; - добавлена поддержка аппаратного I2C0 для плат START-MIK32 и ELSOMIK. Для работы с ним доступен экземпляр класса Wire1; - добавлена поддержка аппаратного SPI0 для всех плат, входящих в пакет. Для работы с ним доступен экземпляр класса SPI1; - увеличено быстродействие функций digitalWrite, digitalRead; - исправлены известные ошибки. Co-authored-by: KlassenTS <klassen@elron.tech> Co-committed-by: KlassenTS <klassen@elron.tech>
This commit was merged in pull request #19.
This commit is contained in:
1 parent
de1f0d7fda
commit
1c8e06634c
211 files changed
+97525
-591
No files matched your search
@@ -228,6 +228,18 @@ void SoftwareSerial::begin(long speed)
|
||||
// delays are empirical values here
|
||||
_rx_delay_centering = _rx_delay_intrabit = _rx_delay_stopbit = _tx_delay = 0;
|
||||
|
||||
// if pins exceeds the total number of pins, return with zero delays - it blocks further library work
|
||||
if ((_transmitPin >= pinCommonQty()))
|
||||
{
|
||||
ErrorMsgHandler("SoftwareSerial.begin(): Tx pin number exceeds the total number of pins");
|
||||
return;
|
||||
}
|
||||
if ((_receivePin >= pinCommonQty()))
|
||||
{
|
||||
ErrorMsgHandler("SoftwareSerial.begin(): Rx pin number exceeds the total number of pins");
|
||||
return;
|
||||
}
|
||||
|
||||
// limit speed
|
||||
if (speed > MAX_SOFT_SERIAL_SPEED) speed = MAX_SOFT_SERIAL_SPEED;
|
||||
if (speed < MIN_SOFT_SERIAL_SPEED) speed = MIN_SOFT_SERIAL_SPEED;
|
||||
|
||||
Reference in new issue
Block a user