PanelPi icon indicating copy to clipboard operation
PanelPi copied to clipboard

File view throws error when no filament length detected

Open badvision opened this issue 6 years ago • 0 comments

There are some files (usually ones not prepared correctly for RepRap firmware) which the firmware cannot properly detect the filament length. This results in an empty list being sent rather than zero and the code throws an error because of this.

Line 58 of FileView should read cellFormat { text = "${it.firstOrNull()} mm" } or something similar to bypass this issue.

badvision avatar Mar 08 '19 04:03 badvision