summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo C2016-06-10 16:00:39 +0200
committerLeo C2016-06-10 16:00:39 +0200
commit019dc5f9ed76ee84d64c34dfc037a9ed8ced4bef (patch)
tree7646afb7700343dcc832b610b68f65148761ef67
parenta2907f2e2b2725679d6b3b8d3231f3d94c325014 (diff)
downloadz180-stamp-019dc5f9ed76ee84d64c34dfc037a9ed8ced4bef.zip
"Enhance" CP/M drive login
-rw-r--r--avr/z180-serv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/avr/z180-serv.c b/avr/z180-serv.c
index 25ffc9c..65ce881 100644
--- a/avr/z180-serv.c
+++ b/avr/z180-serv.c
@@ -442,6 +442,10 @@ void do_msg_cpm_login(uint8_t subf, int len, uint8_t * msg)
return msg_cpm_result(subf, 0x03, res);
}
+ f_close(&dp->fd);
+ res = f_open(&dp->fd, dp->img_name,
+ FA_READ | (dp->opt&DRV_OPT_RO ? 0 : FA_WRITE));
+
dp->flags |= DRV_FLG_OPEN;
/* send result*/