summaryrefslogtreecommitdiffstatshomepage
path: root/stm/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'stm/file.c')
-rw-r--r--stm/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/file.c b/stm/file.c
index 84f7251fec..36658e7a69 100644
--- a/stm/file.c
+++ b/stm/file.c
@@ -29,7 +29,7 @@ mp_obj_t file_obj_read(mp_obj_t self_in, mp_obj_t arg) {
mp_obj_t file_obj_write(mp_obj_t self_in, mp_obj_t arg) {
pyb_file_obj_t *self = self_in;
uint l;
- const byte *s = mp_obj_str_get_data(arg, &l);
+ const char *s = mp_obj_str_get_data(arg, &l);
UINT n_out;
FRESULT res = f_write(&self->fp, s, l, &n_out);
if (res != FR_OK) {