mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-09 20:45:41 +08:00
Merge pull request #88 from grissiom/fix-sim-serial
simulator: fix serial_write
This commit is contained in:
commit
49404aceeb
1 file changed
+1
-1
@@ -164,7 +164,7 @@ static rt_size_t rt_serial_write(rt_device_t dev, rt_off_t pos, const void *buff
|
||||
#endif
|
||||
|
||||
level = rt_hw_interrupt_disable();
|
||||
printf("%s", (char *)buffer);
|
||||
fwrite(buffer, size, 1, stdout);
|
||||
fflush(stdout);
|
||||
rt_hw_interrupt_enable(level);
|
||||
return size;
|
||||
|
||||
Reference in new issue
Block a user