Skip to content

Version 3.7.1-rc.1

Pre-release
Pre-release

Choose a tag to compare

@chrishamm chrishamm released this 30 Nov 15:52
· 1 commit to v3.7-dev since this 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 new held machine status. M25.1 and, while the machine is held, M24 are prioritized so they get through a channel that is blocked by the held move
  • Added recover-duet to reflash mainboards stuck in the bootloader, using bossac for the SAM-BA bootloader and the exposed drive for UF2 bootloaders
  • Added an optional recursive parameter to rr_delete
  • Added binary integer literals such as 0b1011 to expressions
  • Added support for M559 and M560 file uploads on code stream connections. The client sends the code, waits for the Writing to file reply and then sends the file data as raw bytes, either as many as the S parameter 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 (C parameter) is correct

API changes:

  • Added CodeFlags.IsInternal for codes generated by DSF itself, which are never offered to code interceptors
  • InstallSystemPackage and UninstallSystemPackage require the ServicePlugins permission instead of SuperUser. They remain disabled unless RootPluginSupport is set
  • Codes sent with the Code command or returned by a code interceptor with Rewrite are checked for the limits of the code parser, 255 characters of keyword argument and 255 parameters. A Code command beyond them fails with a CodeParserException, and a rewritten code beyond them ends the intercepted code with that error

Changed behaviour:

  • M409 is answered from the object model of DSF once it has been fully updated; array lengths, indexed keys, M409 R1 and keys that cannot be resolved are still passed on to the firmware
  • M409 without 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 in inputs[] empty like RepRapFirmware does
  • The default value of inputs[].state is unused instead of idle
  • M122 is executed unbuffered so that a message box or macro request cannot overtake its reply
  • M24 without a selected job and M0/M1/M2 on 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
  • M559 and M560 sent 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 characters
  • M112 is only completed once the emergency stop has been sent to the firmware

Bug fixes:

  • Unbuffered codes like M122 and M409 could deadlock a nested macro when they had to wait for it
  • When a code stream connection was closed during an M28 upload, 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
  • M99 closing a macro file was cancelled instead of being completed
  • M409 reported {} instead of null for keys that do not exist, and dictionaries were reported in full beyond the requested depth
  • M997 S2 deadlocked 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.txt started 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-dwc could 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 InvalidateChannel command 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.g and trigger1.g instead of performing an emergency stop and pausing the print
  • M23, M32 and M37 could deadlock while waiting for the print file info to be sent, and M606 S1 could deadlock while a job was being aborted
  • M997 flashed 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 M260 and M261 were 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 deep now
  • Very long tokens in expressions and in set, var and global commands 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.uptime could not be used in arithmetic or comparisons
  • floor(), ceil(), round() and pow() returned a wrong integer when the result was exactly 2147483648
  • abs() and mod() 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