We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5800661 commit 6e23562Copy full SHA for 6e23562
cores/arduino/HardwareSerial.cpp
@@ -100,7 +100,11 @@ void HardwareSerial::_tx_udr_empty_irq(void)
100
// actually got written. Other r/w bits are preserved, and zeroes
101
// written to the rest.
102
103
+#ifdef MPCM0
104
*_ucsra = ((*_ucsra) & ((1 << U2X0) | (1 << MPCM0))) | (1 << TXC0);
105
+#else
106
+ *_ucsra = ((*_ucsra) & ((1 << U2X0) | (1 << TXC0)));
107
+#endif
108
109
if (_tx_buffer_head == _tx_buffer_tail) {
110
// Buffer empty, so disable interrupts
@@ -236,7 +240,11 @@ size_t HardwareSerial::write(uint8_t c)
236
240
// be cleared when no bytes are left, causing flush() to hang
237
241
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
238
242
*_udr = c;
243
239
244
245
246
247
248
}
249
return 1;
250
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments