Compare commits
No commits in common. "99e0f3d245734e57c2b069581033549f6fd8a731" and "697ac0ccc8c0a45dff03a3778acb40b9be1ec842" have entirely different histories.
99e0f3d245
...
697ac0ccc8
1 changed files with 1 additions and 9 deletions
|
|
@ -2450,15 +2450,7 @@ function slotLabel(slot) {
|
||||||
const p = printerList.find((x) => x.serial === serial);
|
const p = printerList.find((x) => x.serial === serial);
|
||||||
const name = p ? printerName(p) : '';
|
const name = p ? printerName(p) : '';
|
||||||
if (unit === 'ext') return name ? `on the ${name}’s external holder` : 'on the external holder';
|
if (unit === 'ext') return name ? `on the ${name}’s external holder` : 'on the external holder';
|
||||||
return `in ${name ? `${name}, ` : ''}${amsUnitLabel(Number(unit))}, slot ${Number(idx) + 1}`;
|
return `in ${name ? `${name}, ` : ''}AMS ${Number(unit) + 1}, slot ${Number(idx) + 1}`;
|
||||||
}
|
|
||||||
|
|
||||||
// Printers number AMS units in ranges: 0–15 for an AMS or AMS 2 Pro, 128 and up
|
|
||||||
// for an AMS HT, and newer printers (the A2L, for one) put an AMS lite at 16.
|
|
||||||
function amsUnitLabel(id) {
|
|
||||||
if (id >= 128) return `AMS HT ${id - 127}`;
|
|
||||||
if (id >= 16) return `AMS ${id - 15}`;
|
|
||||||
return `AMS ${id + 1}`;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function spoolHtml(s) {
|
function spoolHtml(s) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue