summaryrefslogtreecommitdiffstatshomepage
path: root/stm/printf.c
diff options
context:
space:
mode:
authorian-v <ianv888@gmail.com>2014-01-06 09:52:29 -0800
committerian-v <ianv888@gmail.com>2014-01-06 09:52:29 -0800
commit7a16fadbf843ca5d49fb20b5f5785ffccfd9019f (patch)
tree167d326efc1a1a75d3a371bbeab1a0bc4164fd9e /stm/printf.c
parente03c0533fe467439bae1addd6d2a2ee57a9370e4 (diff)
downloadmicropython-7a16fadbf843ca5d49fb20b5f5785ffccfd9019f.tar.gz
micropython-7a16fadbf843ca5d49fb20b5f5785ffccfd9019f.zip
Co-exist with C++ (issue #85)
Diffstat (limited to 'stm/printf.c')
-rw-r--r--stm/printf.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stm/printf.c b/stm/printf.c
index 8a59f8a986..7ada626bd5 100644
--- a/stm/printf.c
+++ b/stm/printf.c
@@ -152,10 +152,10 @@ int pfenv_printf(const pfenv_t *pfenv, const char *fmt, va_list args) {
}
// parse long specifiers (current not used)
- //bool long_arg = false;
+ //MP_BOOL long_arg = MP_FALSE;
if (*fmt == 'l') {
++fmt;
- //long_arg = true;
+ //long_arg = MP_TRUE;
}
if (*fmt == '\0') {
@@ -215,14 +215,14 @@ int pfenv_printf(const pfenv_t *pfenv, const char *fmt, va_list args) {
void stdout_print_strn(void *data, const char *str, unsigned int len) {
// send stdout to USART, USB CDC VCP, and LCD if nothing else
- bool any = false;
+ MP_BOOL any = MP_FALSE;
if (usart_is_enabled()) {
usart_tx_strn_cooked(str, len);
- any = true;
+ any = MP_TRUE;
}
if (usb_vcp_is_enabled()) {
usb_vcp_send_strn_cooked(str, len);
- any = true;
+ any = MP_TRUE;
}
if (!any) {
lcd_print_strn(str, len);