summaryrefslogtreecommitdiff
path: root/stmhal/uart.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-11-14 00:24:22 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-11-14 00:24:22 +0300
commit59a1201da959ab01895361c0b5bb8bc1409f2b39 (patch)
tree7fc38be0c61c88d12dd665b67f42ac1c0b437065 /stmhal/uart.c
parent99e5badeb1e2e6aeffd3b3d56902d4257e168326 (diff)
all: Remove readall() method, which is equivalent to read() w/o args.
Its addition was due to an early exploration on how to add CPython-like stream interface. It's clear that it's not needed and just takes up bytes in all ports.
Diffstat (limited to 'stmhal/uart.c')
-rw-r--r--stmhal/uart.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stmhal/uart.c b/stmhal/uart.c
index cbcb7c059..37c1906c1 100644
--- a/stmhal/uart.c
+++ b/stmhal/uart.c
@@ -60,7 +60,7 @@
/// using the standard stream methods:
///
/// uart.read(10) # read 10 characters, returns a bytes object
-/// uart.readall() # read all available characters
+/// uart.read() # read all available characters
/// uart.readline() # read a line
/// uart.readinto(buf) # read and store into the given buffer
/// uart.write('abc') # write the 3 characters
@@ -799,8 +799,6 @@ STATIC const mp_map_elem_t pyb_uart_locals_dict_table[] = {
/// \method read([nbytes])
{ MP_OBJ_NEW_QSTR(MP_QSTR_read), (mp_obj_t)&mp_stream_read_obj },
- /// \method readall()
- { MP_OBJ_NEW_QSTR(MP_QSTR_readall), (mp_obj_t)&mp_stream_readall_obj },
/// \method readline()
{ MP_OBJ_NEW_QSTR(MP_QSTR_readline), (mp_obj_t)&mp_stream_unbuffered_readline_obj},
/// \method readinto(buf[, nbytes])