File tree 1 file changed +2
-2
lines changed
libraries/SoftwareSerial/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ void SoftwareSerial::begin(long speed)
316
316
_tx_delay = subtract_cap (bit_delay, 15 / 4 );
317
317
318
318
// Only setup rx when we have a valid PCINT for this pin
319
- if (digitalPinToPCICR (_receivePin)) {
319
+ if (digitalPinToPCICR (( int8_t ) _receivePin)) {
320
320
#if GCC_VERSION > 40800
321
321
// Timings counted from gcc 4.8.2 output. This works up to 115200 on
322
322
// 16Mhz and 57600 on 8Mhz.
@@ -357,7 +357,7 @@ void SoftwareSerial::begin(long speed)
357
357
// Enable the PCINT for the entire port here, but never disable it
358
358
// (others might also need it, so we disable the interrupt by using
359
359
// the per-pin PCMSK register).
360
- *digitalPinToPCICR (_receivePin) |= _BV (digitalPinToPCICRbit (_receivePin));
360
+ *digitalPinToPCICR (( int8_t ) _receivePin) |= _BV (digitalPinToPCICRbit (_receivePin));
361
361
// Precalculate the pcint mask register and value, so setRxIntMask
362
362
// can be used inside the ISR without costing too much time.
363
363
_pcint_maskreg = digitalPinToPCMSK (_receivePin);
You can’t perform that action at this time.
0 commit comments