Skip to content

Commit a49cda3

Browse files
committed
Fixed partial update that bad merge caused
1 parent 8d185f2 commit a49cda3

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

src/boards/Inkplate10.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ void Inkplate::display1b()
235235
clean(3, 1);
236236
vscan_start();
237237
einkOff();
238+
_blockPartial = 0;
238239
}
239240

240241
/**
@@ -298,7 +299,7 @@ void Inkplate::partialUpdate(bool _forced)
298299
{
299300
if (getDisplayMode() == 1)
300301
return;
301-
if (_blockPartial == 1 && _forced)
302+
if (_blockPartial == 1 && !_forced)
302303
{
303304
display1b();
304305
return;

src/boards/Inkplate5.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ void Inkplate::display1b()
266266
clean(3, 1);
267267
vscan_start();
268268
einkOff();
269+
_blockPartial = 0;
270+
269271
}
270272

271273
/**
@@ -330,7 +332,7 @@ void Inkplate::partialUpdate(bool _forced)
330332
if (getDisplayMode() == 1)
331333
return;
332334

333-
if (_blockPartial == 1 && _forced)
335+
if (_blockPartial == 1 && !_forced)
334336
{
335337
display1b();
336338
return;

src/boards/Inkplate6.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ void Inkplate::display1b()
282282

283283
vscan_start();
284284
einkOff();
285+
_blockPartial = 0;
285286
}
286287

287288
/**
@@ -348,7 +349,7 @@ void Inkplate::partialUpdate(bool _forced)
348349
if (getDisplayMode() == 1)
349350
return;
350351

351-
if (_blockPartial == 1 && _forced)
352+
if (_blockPartial == 1 && !_forced)
352353
{
353354
display1b();
354355
return;

src/boards/Inkplate6plus.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ void Inkplate::display1b()
330330
clean(3, 1);
331331
vscan_start();
332332
einkOff();
333+
_blockPartial = 0;
334+
333335
}
334336

335337
/**
@@ -401,7 +403,7 @@ void Inkplate::partialUpdate(bool _forced)
401403
{
402404
if (getDisplayMode() == 1)
403405
return;
404-
if (_blockPartial == 1 && _forced)
406+
if (_blockPartial == 1 && !_forced)
405407
{
406408
display1b();
407409
return;

0 commit comments

Comments
 (0)