mirror of
https://github.com/jam422470459/EPD-nRF52-hema213.git
synced 2025-12-06 16:42:49 +08:00
fix sendimg for old firmware
This commit is contained in:
@@ -204,6 +204,7 @@ async function sendimg() {
|
||||
let dataSent = true;
|
||||
updateButtonStatus(true);
|
||||
if (appVersion < 0x16) {
|
||||
const driver = epdDriverSelect.value;
|
||||
if (ditherMode === 'threeColor') {
|
||||
const halfLength = Math.floor(processedData.length / 2);
|
||||
await epdWrite(driver === "02" ? 0x24 : 0x10, processedData.slice(0, halfLength));
|
||||
|
||||
Reference in New Issue
Block a user