From b2f891176751432de8fd087a2df6fd3fef6c45cf Mon Sep 17 00:00:00 2001 From: aryeg Date: Sun, 11 Jan 2026 12:18:50 +0200 Subject: [PATCH] Prevent repeating the last command in the REPL --- src/littlefs/repl.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/littlefs/repl.py b/src/littlefs/repl.py index ddd706d..4f0fc34 100644 --- a/src/littlefs/repl.py +++ b/src/littlefs/repl.py @@ -65,6 +65,10 @@ def _copy_stream(src: BinaryIO, dst: BinaryIO) -> None: break dst.write(chunk) + def emptyline(self): + """Override to prevent repeating the last command.""" + pass + def do_mount(self, _: str = "") -> None: """Attempt to mount the remote filesystem.""" if self._mounted: