Skip to content
Snippets Groups Projects
Commit 2c8d130f authored by Damien George's avatar Damien George
Browse files

py/stream: Update comment for mp_stream_write_adaptor.

parent 561ae9a9
No related branches found
No related tags found
No related merge requests found
......@@ -242,7 +242,7 @@ mp_obj_t mp_stream_write(mp_obj_t self_in, const void *buf, size_t len, byte fla
}
}
// XXX hack
// This is used to adapt a stream object to an mp_print_t interface
void mp_stream_write_adaptor(void *self, const char *buf, size_t len) {
mp_stream_write(MP_OBJ_FROM_PTR(self), buf, len, MP_STREAM_RW_WRITE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment