fix sendimg for old firmware

This commit is contained in:
Shuanglei Tao
2025-06-06 12:41:17 +08:00
parent 635bf1379b
commit dc52099f6e

View File

@@ -204,6 +204,7 @@ async function sendimg() {
let dataSent = true; let dataSent = true;
updateButtonStatus(true); updateButtonStatus(true);
if (appVersion < 0x16) { if (appVersion < 0x16) {
const driver = epdDriverSelect.value;
if (ditherMode === 'threeColor') { if (ditherMode === 'threeColor') {
const halfLength = Math.floor(processedData.length / 2); const halfLength = Math.floor(processedData.length / 2);
await epdWrite(driver === "02" ? 0x24 : 0x10, processedData.slice(0, halfLength)); await epdWrite(driver === "02" ? 0x24 : 0x10, processedData.slice(0, halfLength));