🐛 virtual: remove wrong assertion

Was actually wrong to have that here, but thankfully it was
implemented wrong as well, and here two wrongs made
one right.

To match existing firmware out there, we should be sending
SD status auto reports with progress information whenever
a print from a selected SD file has been started. If a such a print
is cancelled via OctoPrint, all we can do is send an M25 to pause
it and just never resume it. That means that the SD status will
continue to report the current file position.

See #4924
This commit is contained in:
Gina Häußge committed 2024-01-08 15:03:07 +01:00
1 parent aa02750458
commit 3e94574a9b
1 file changed
+1 -1
@@ -1579,7 +1579,7 @@ class VirtualPrinter:
self._newSdFilePos = pos
def _reportSdStatus(self):
if self._sdPrinter is not None and self._sdPrintingSemaphore.is_set:
if self._sdPrinter is not None:
self._send(
f"SD printing byte {self._selectedSdFilePos}/{self._selectedSdFileSize}"
)