nseidle/OpenLog — Issue #97: escape sequence ignored in write mode
Author: evilsibling
Created: 2012-02-26 23:53:56+00:00
State: open

when in write mode openlog doesnt drop back to command mode immediately after issuing the escape sequence.

example scenario:
firmware 2.5, fat16, 1 gig SD card.
escape char is 26 (ctrl+z), and count is 3

>new test1.txt
>write test1.txt 0
<
this is some test data

(ctrl+z)(ctrl+z)(ctrl+z)

the openlog doesnt drop to command mode.
I found I have to send newline twice after the escape sequence before it will drop to command mode.

e.g.

>new test2.txt
>write test2.txt 0
<
this is some more test data
(ctrl+z)(ctrl+z)(ctrl+z)
(cr)
(cr)
~>

Same behaviour regardless of the offset supplied to the write command.