summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2015-09-20 14:51:22 +0800
committerBernard Xiong <[email protected]>2015-09-20 14:51:22 +0800
commit72f79d8eef64ebec31722511e8a8c34cf0085b6d (patch)
treeeb8098fa092c76dfae0b06fd221e89363a440db6 /src
parent9ad05db536b9f178e0142664a30da3477fd15a4d (diff)
parent7dfac0f78e546842b276806538a36066d61bd974 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'src')
-rw-r--r--src/kservice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kservice.c b/src/kservice.c
index 0e15610e51..f18f792dda 100644
--- a/src/kservice.c
+++ b/src/kservice.c
@@ -1073,8 +1073,8 @@ rt_device_t rt_console_set_device(const char *name)
}
/* set new console device */
+ rt_device_open(new, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM);
_console_device = new;
- rt_device_open(_console_device, RT_DEVICE_OFLAG_RDWR | RT_DEVICE_FLAG_STREAM);
}
return old;