Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of DMX by
Diff: DMX.cpp
- Revision:
- 1:f0d988e15810
- Parent:
- 0:cbff6bf41542
- Child:
- 2:d7677060f8eb
diff -r cbff6bf41542 -r f0d988e15810 DMX.cpp
--- a/DMX.cpp Tue Jun 26 08:29:33 2012 +0000
+++ b/DMX.cpp Thu Jul 12 14:57:09 2012 +0000
@@ -100,7 +100,7 @@
// Data
if (mode_tx == DMX_MODE_DATA) {
if (addr_tx < DMX_SIZE) {
-#ifdef DMX_DIRECT
+#ifdef DMX_UART_DIRECT
*uart_thr = (uint8_t)data_tx[addr_tx];
#else
dmx.putc(data_tx[addr_tx]);
@@ -119,7 +119,11 @@
int flg, dat;
flg = *uart_lsr;
+#ifdef DMX_UART_DIRECT
+ dat = *uart_rbr;
+#else
dat = dmx.getc();
+#endif
if (flg & ((1 << 7)|(1 << 3)|(1 << 4))) {
// Break Time
