Repository navigation
Version 3.7.1-rc.1
Pre-release
Pre-release
Compatible versions:
- RepRapFirmware 3.7.1-rc.1
- DuetWebControl 3.7.1-rc.1
New features:
- Added support for feed hold (
M25.1) and the newheldmachine status.M25.1and, while the machine is held,M24are prioritized so they get through a channel that is blocked by the held move - Added
recover-duetto reflash mainboards stuck in the bootloader, usingbossacfor the SAM-BA bootloader and the exposed drive for UF2 bootloaders - Added an optional
recursiveparameter torr_delete - Added binary integer literals such as
0b1011to expressions - Added support for
M559andM560file uploads on code stream connections. The client sends the code, waits for theWriting to filereply and then sends the file data as raw bytes, either as many as theSparameter says or up to the end-of-file string<!-- **EoF** -->, like on a serial input of RepRapFirmware. An existing file is only replaced when the upload is complete and its checksum (Cparameter) is correct
API changes:
- Added
CodeFlags.IsInternalfor codes generated by DSF itself, which are never offered to code interceptors InstallSystemPackageandUninstallSystemPackagerequire theServicePluginspermission instead ofSuperUser. They remain disabled unlessRootPluginSupportis set- Codes sent with the
Codecommand or returned by a code interceptor withRewriteare checked for the limits of the code parser, 255 characters of keyword argument and 255 parameters. ACodecommand beyond them fails with aCodeParserException, and a rewritten code beyond them ends the intercepted code with that error
Changed behaviour:
M409is answered from the object model of DSF once it has been fully updated; array lengths, indexed keys,M409 R1and keys that cannot be resolved are still passed on to the firmwareM409without a key reports only the first level like RepRapFirmware does- Object model queries for live values only (flag
f) leave the entries of unused input channels ininputs[]empty like RepRapFirmware does - The default value of
inputs[].stateisunusedinstead ofidle M122is executed unbuffered so that a message box or macro request cannot overtake its replyM24without a selected job andM0/M1/M2on a held job are passed to the firmware instead of being rejected, and a held machine counts as printing for SBC triggers while a job file is loaded- Unexpected replies from the firmware are always reported together with their message flags instead of being suppressed after codes have been cancelled
- Expansion board updates wait for the board to report the new firmware version instead of waiting for the machine status to change
- Reduced the log level of the icon thumbnail parser
M559andM560sent in any other way than over a code stream connection are rejected with a clear error message, because the file data cannot follow the code there- Deleting the root directory of a volume is refused by
M472, by the HTTP delete requests and by delete requests from the firmware vector()and array concatenation are limited to 255 elements like in the firmware, and the conversion of nested arrays to a string is limited to 65535 charactersM112is only completed once the emergency stop has been sent to the firmware
Bug fixes:
- Unbuffered codes like
M122andM409could deadlock a nested macro when they had to wait for it - When a code stream connection was closed during an
M28upload, the file stayed open and the codes of the next connection on that channel were written to it. The upload is now abandoned and the partial file deleted M99closing a macro file was cancelled instead of being completedM409reported{}instead ofnullfor keys that do not exist, and dictionaries were reported in full beyond the requested depthM997 S2deadlocked when only RepRapFirmware was updated- Plugin upgrades deleted the whole plugin directory, and plugin files on the virtual SD card were not removed when a plugin was uninstalled
- Plugins were not started when
plugins.txtstarted with a byte order mark - Numeric object model enums were quoted in expressions
- The SPI transfer loop kept spinning after a lost connection
- The job file name stayed in the object model after a job had ended
- A job aborted by the firmware, or cancelled by a request to abort all its files, could be reported as finished
launch-dwccould leave the taskbar over DWC on labwc- The IPC permission check granted every command and connection mode to every client, so plugins could use commands that the permissions in their manifest do not cover
- The
InvalidateChannelcommand was refused as unsupported - Code interceptors of the executed stage with auto-flush blocked their channel, and wildcard filters threw an exception for codes shorter than the filter
- A code that failed in a processing stage was never completed and blocked its channel, e.g.
M122 P{0} - An emergency stop could get lost and terminate DCS when a macro file finished at the same time, and it was not sent again when the USB transfer carrying it failed
- SBC triggers 0 and 1 ran
trigger0.gandtrigger1.ginstead of performing an emergency stop and pausing the print M23,M32andM37could deadlock while waiting for the print file info to be sent, andM606 S1could deadlock while a job was being abortedM997flashed empty firmware files and did not unpack UF2 files with an upper-case extension- A line feed after the drive prefix truncated the resolved file path
- Strings with incomplete UTF-8 sequences and float values rounded beyond the float range made the object model unserializable
- Variables declared in a block of a macro file were not deleted at the end of that block. In job files they are hidden at the end of their block and restored when a pause rewinds into it
- Result variables of
M260andM261were not removed with their block when the block had been read to its end before the code ran - Codes of a job or macro that were still waiting were not cancelled by a pause or abort
- The SPI link never recovered when RepRapFirmware restarted while DCS was running
- A packet running past the end of an SPI transfer was read from the data of an earlier transfer
- The whole transfer was restarted when only DSF had received bad data from RepRapFirmware
- Resend requests over USB looked up the packet in the wrong transfer buffer, and new packets could overtake resent ones
- Deeply nested expressions terminated DCS with a stack overflow. They are rejected with
Expression nesting too deepnow - Very long tokens in expressions and in
set,varandglobalcommands took quadratic time to process - Comparing two character values in an expression failed with an error
- An out-of-range index into a string or array threw an error even in a part of an expression that is not evaluated
- The
#operator was ignored when applied to a named constant sbc.uptimecould not be used in arithmetic or comparisonsfloor(),ceil(),round()andpow()returned a wrong integer when the result was exactly 2147483648abs()andmod()failed with an internal error for the lowest integer- A hexadecimal literal too large for 64 bits and an exponent without digits failed with an internal error instead of a parse error
- Parameter values out of range failed with an internal error instead of being reported as invalid