Skip to content

Commit 0912712

Browse files
committed
Fix liveOn typo
1 parent 35e2c68 commit 0912712

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/Inkplate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Inkplate : public System, public Graphics
4747
void clearDisplay();
4848
void display();
4949
// void writeRow(uint8_t data);
50-
void partialUpdate(bool _forced = false, bool liveOn = false);
50+
void partialUpdate(bool _forced = false, bool leaveOn = false);
5151

5252
#ifdef ARDUINO_INKPLATECOLOR
5353
void clean();

src/boards/Inkplate10.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ void IRAM_ATTR Inkplate::display3b()
308308
*
309309
* @note Partial update only works in black and white mode
310310
*/
311-
void Inkplate::partialUpdate(bool _forced, bool liveOn)
311+
void Inkplate::partialUpdate(bool _forced, bool leaveOn)
312312
{
313313
if (getDisplayMode() == 1)
314314
return;
@@ -338,7 +338,7 @@ void Inkplate::partialUpdate(bool _forced, bool liveOn)
338338
}
339339
}
340340

341-
if (!liveOn)
341+
if (!leaveOn)
342342
{
343343
if (!einkOn())
344344
{
@@ -374,7 +374,7 @@ void Inkplate::partialUpdate(bool _forced, bool liveOn)
374374
clean(3, 1);
375375
vscan_start();
376376

377-
if (!liveOn)
377+
if (!leaveOn)
378378
einkOff();
379379

380380
memcpy(DMemoryNew, _partial, E_INK_WIDTH * E_INK_HEIGHT / 8);

src/boards/Inkplate5.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ void IRAM_ATTR Inkplate::display3b()
341341
*
342342
* @note Partial update only works in black and white mode
343343
*/
344-
void Inkplate::partialUpdate(bool _forced, bool liveOn)
344+
void Inkplate::partialUpdate(bool _forced, bool leaveOn)
345345
{
346346
if (getDisplayMode() == 1)
347347
return;
@@ -370,7 +370,7 @@ void Inkplate::partialUpdate(bool _forced, bool liveOn)
370370
}
371371
}
372372

373-
if (!liveOn)
373+
if (!leaveOn)
374374
{
375375
if (!einkOn())
376376
{
@@ -404,7 +404,7 @@ void Inkplate::partialUpdate(bool _forced, bool liveOn)
404404
clean(3, 1);
405405
vscan_start();
406406

407-
if (!liveOn)
407+
if (!leaveOn)
408408
einkOff();
409409
for (int i = 0; i < (E_INK_WIDTH * E_INK_HEIGHT / 8); i++)
410410
{

src/boards/Inkplate6.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ void Inkplate::display3b()
357357
*
358358
* @note Partial update only works in black and white mode
359359
*/
360-
void Inkplate::partialUpdate(bool _forced, bool liveOn)
360+
void Inkplate::partialUpdate(bool _forced, bool leaveOn)
361361
{
362362
if (getDisplayMode() == 1)
363363
return;
@@ -388,7 +388,7 @@ void Inkplate::partialUpdate(bool _forced, bool liveOn)
388388
}
389389
}
390390

391-
if (!liveOn)
391+
if (!leaveOn)
392392
{
393393
if (!einkOn())
394394
{
@@ -424,7 +424,7 @@ void Inkplate::partialUpdate(bool _forced, bool liveOn)
424424
clean(3, 1);
425425
vscan_start();
426426

427-
if (!liveOn)
427+
if (!leaveOn)
428428
einkOff();
429429

430430
memcpy(DMemoryNew, _partial, E_INK_WIDTH * E_INK_HEIGHT / 8);

src/boards/Inkplate6plus.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ void Inkplate::display3b()
410410
*
411411
* @note Partial update only works in black and white mode
412412
*/
413-
void Inkplate::partialUpdate(bool _forced, bool liveOn)
413+
void Inkplate::partialUpdate(bool _forced, bool leaveOn)
414414
{
415415
if (getDisplayMode() == 1)
416416
return;
@@ -440,7 +440,7 @@ void Inkplate::partialUpdate(bool _forced, bool liveOn)
440440
}
441441
}
442442

443-
if (!liveOn)
443+
if (!leaveOn)
444444
{
445445
if (!einkOn())
446446
{
@@ -499,7 +499,7 @@ void Inkplate::partialUpdate(bool _forced, bool liveOn)
499499
clean(3, 1);
500500
vscan_start();
501501

502-
if (!liveOn)
502+
if (!leaveOn)
503503
einkOff();
504504
memcpy(DMemoryNew, _partial, E_INK_WIDTH * E_INK_HEIGHT / 8);
505505
}

0 commit comments

Comments
 (0)