diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-07-16 10:16:51 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-07-16 10:16:51 +0000 |
commit | 0ac8c37d5bb7bdbe2beecea0396b7698041a355e (patch) | |
tree | ec270fa92245d6dbc2863917b7f3e21751bc0640 /os/hal/ports/simulator | |
parent | 53fe4e39fa53c53fc5bc40effc73c5580f82e492 (diff) | |
download | ChibiOS-0ac8c37d5bb7bdbe2beecea0396b7698041a355e.tar.gz ChibiOS-0ac8c37d5bb7bdbe2beecea0396b7698041a355e.tar.bz2 ChibiOS-0ac8c37d5bb7bdbe2beecea0396b7698041a355e.zip |
Fixed bug #765.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9703 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/simulator')
-rw-r--r-- | os/hal/ports/simulator/win32/hal_serial_lld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/ports/simulator/win32/hal_serial_lld.c b/os/hal/ports/simulator/win32/hal_serial_lld.c index fcd4ab7f3..0bd8b4798 100644 --- a/os/hal/ports/simulator/win32/hal_serial_lld.c +++ b/os/hal/ports/simulator/win32/hal_serial_lld.c @@ -215,7 +215,7 @@ void sd_lld_init(void) { SD1.com_name = "SD1";
#endif
-#if USE_WIN32_SERIAL1
+#if USE_WIN32_SERIAL2
sdObjectInit(&SD2, NULL, NULL);
SD2.com_listen = INVALID_SOCKET;
SD2.com_data = INVALID_SOCKET;
@@ -241,7 +241,7 @@ void sd_lld_start(SerialDriver *sdp, const SerialConfig *config) { init(&SD1, SD1_PORT);
#endif
-#if USE_WIN32_SERIAL1
+#if USE_WIN32_SERIAL2
if (sdp == &SD2)
init(&SD2, SD2_PORT);
#endif
|