Skip to content

Commit d695477

Browse files
author
Clang Robot
committed
Committing clang-format changes
1 parent dd29960 commit d695477

File tree

5 files changed

+11
-16
lines changed

5 files changed

+11
-16
lines changed

src/boards/Inkplate10/Inkplate10Driver.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int EPDDriver::initDriver(Inkplate *_inkplatePtr)
7878
// If the driver was already initialized, skip current initialization
7979
if (_beginDone == 1)
8080
return 0;
81-
81+
8282
// Save the given inkplate pointer for internal use
8383
_inkplate = _inkplatePtr;
8484

@@ -89,7 +89,7 @@ int EPDDriver::initDriver(Inkplate *_inkplatePtr)
8989
gpioInit();
9090

9191

92-
if(!initializeFramebuffers())
92+
if (!initializeFramebuffers())
9393
{
9494
return 0;
9595
}
@@ -575,8 +575,8 @@ void EPDDriver::einkOff()
575575
setPanelState(0);
576576
}
577577

578-
void EPDDriver::pmicBegin()
579-
{
578+
void EPDDriver::pmicBegin()
579+
{
580580
WAKEUP_SET;
581581
delay(1);
582582
Wire.beginTransmission(0x48);
@@ -588,7 +588,7 @@ void EPDDriver::einkOff()
588588
Wire.endTransmission();
589589
delay(1);
590590
WAKEUP_CLEAR;
591-
}
591+
}
592592

593593

594594
/**
@@ -746,7 +746,7 @@ void EPDDriver::gpioInit()
746746

747747
internalIO.digitalWrite(9, LOW);
748748

749-
//Set all IO expander registers to 0
749+
// Set all IO expander registers to 0
750750
memset(internalIO._ioExpanderRegs, 0, 22);
751751
memset(externalIO._ioExpanderRegs, 0, 22);
752752

@@ -756,7 +756,7 @@ void EPDDriver::gpioInit()
756756
internalIO.pinMode(GPIO0_ENABLE, OUTPUT);
757757
internalIO.digitalWrite(GPIO0_ENABLE, 1);
758758

759-
// For same reason, unused pins of first I/O expander have to be also set as
759+
// For same reason, unused pins of first I/O expander have to be also set as
760760
// outputs, low.
761761
internalIO.pinMode(14, OUTPUT);
762762
internalIO.pinMode(15, OUTPUT);
@@ -801,7 +801,7 @@ void EPDDriver::gpioInit()
801801
internalIO.pinMode(9, OUTPUT);
802802
internalIO.digitalWrite(9, LOW);
803803

804-
// Set all pins of seconds I/O expander to outputs, low.
804+
// Set all pins of seconds I/O expander to outputs, low.
805805
// For some reason, it draw more current in deep sleep when pins are set as
806806
// inputs...
807807

@@ -841,7 +841,6 @@ uint8_t EPDDriver::initializeFramebuffers()
841841
memset(_partial, 0, E_INK_WIDTH * E_INK_HEIGHT / 8);
842842
memset(_pBuffer, 0, E_INK_WIDTH * E_INK_HEIGHT / 4);
843843
memset(DMemory4Bit, 255, E_INK_WIDTH * E_INK_HEIGHT / 2);
844-
845844
}
846845

847846
/**

src/features/rtc/rtc.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ void RTC::EnableAlarm() // datasheet 8.5.6.
230230
* @param uint8_t AlarmDay Set the alarm rtcDay
231231
* @param uint8_t AlarmWeekday Set the alarm rtcWeekday
232232
*/
233-
void RTC::SetAlarm(uint8_t AlarmSecond, uint8_t AlarmMinute, uint8_t AlarmHour, uint8_t AlarmDay,
234-
uint8_t AlarmWeekday)
233+
void RTC::SetAlarm(uint8_t AlarmSecond, uint8_t AlarmMinute, uint8_t AlarmHour, uint8_t AlarmDay, uint8_t AlarmWeekday)
235234
{
236235
if (AlarmSecond < 99)
237236
{ // rtcSecond
@@ -350,7 +349,7 @@ void RTC::ReadAlarm()
350349
AlarmSecond = 99; // using 99 as code for no alarm
351350
}
352351
else
353-
{ // else if AEN = 0 (rtcSecond alarm enabled)
352+
{ // else if AEN = 0 (rtcSecond alarm enabled)
354353
AlarmSecond = BcdToDec(AlarmSecond & ~RTC_ALARM); // remove AEN flag and convert to dec number
355354
}
356355

src/features/rtc/rtc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class RTC
8787
void GetRtcData();
8888
void EnableAlarm(); // called on setAlarm()
8989
void SetAlarm(uint8_t alarm_second, uint8_t alarm_minute, uint8_t alarm_hour, uint8_t alarm_day,
90-
uint8_t alarm_weekday);
90+
uint8_t alarm_weekday);
9191
void SetAlarmEpoch(uint32_t _epoch, uint8_t _match);
9292
void ReadAlarm();
9393
bool ChangeTimeFormat(); // returns false for 24H format & true for 12H format

src/graphics/Image/Image.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ struct bitmapHeader
4747
class Image
4848
{
4949
public:
50-
51-
5250
typedef enum
5351
{
5452
BMP,

src/graphics/Image/bmpHelpers/ImageBMP.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "../Image.h"
2020

2121

22-
2322
/**
2423
* @brief legalBmp function checks file header for BMP image signature
2524
*

0 commit comments

Comments
 (0)