diff --git a/packages/gui/src/components/plot/add/PlotAddChooseSize.tsx b/packages/gui/src/components/plot/add/PlotAddChooseSize.tsx index fd8b11282e..bea29ef6e9 100644 --- a/packages/gui/src/components/plot/add/PlotAddChooseSize.tsx +++ b/packages/gui/src/components/plot/add/PlotAddChooseSize.tsx @@ -37,7 +37,9 @@ export default function PlotAddChooseSize(props: Props) { const compressionAvailable = op.haveBladebitCompressionLevel && - (plotterName === PlotterName.BLADEBIT_CUDA || plotterName === PlotterName.BLADEBIT_RAM); + (plotterName === PlotterName.BLADEBIT_CUDA || plotterName === PlotterName.BLADEBIT_RAM) && + plotter.version && + +plotter.version.split('.')[0] >= 3; const [allowedPlotSizes, setAllowedPlotSizes] = useState( getPlotSizeOptions(plotterName, compressionLevel).filter((option) => plotter.options.kSizes.includes(option.value)) diff --git a/packages/gui/src/components/plot/add/PlotAddForm.tsx b/packages/gui/src/components/plot/add/PlotAddForm.tsx index f220cfa2d8..bcf880b4bf 100644 --- a/packages/gui/src/components/plot/add/PlotAddForm.tsx +++ b/packages/gui/src/components/plot/add/PlotAddForm.tsx @@ -85,6 +85,15 @@ export default function PlotAddForm(props: Props) { maxRam, }; + if ( + (plotterName === PlotterName.BLADEBIT_RAM || + plotterName === PlotterName.BLADEBIT_DISK || + plotterName === PlotterName.BLADEBIT_CUDA) && + +plotters[plotterName].version.split('.')[0] < 3 // Bladebit < 3.0.0 does not support plot compression + ) { + defaults.bladebitCompressionLevel = undefined; + } + return defaults; };