Skip to content

Commit 7a33c51

Browse files
committed
Fix whitespace
1 parent e0f4ff6 commit 7a33c51

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

FPS_GT511C3/FPS_GT511C3.cpp

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
FPS_GT511C3.h v1.0 - Library for controlling the GT-511C3 Finger Print Scanner (FPS)
33
Created by Josh Hawley, July 23rd 2013
44
Licensed for non-commercial use, must include this license message
@@ -15,7 +15,7 @@
1515
byte* Command_Packet::GetPacketBytes()
1616
{
1717
byte* packetbytes= new byte[12];
18-
18+
1919
// update command before calculating checksum (important!)
2020
word cmd = Command;
2121
command[0] = GetLowByte(cmd);
@@ -99,7 +99,7 @@ Response_Packet::Response_Packet(byte* buffer, bool UseSerialDebug)
9999
byte checksum_high = GetHighByte(checksum);
100100
CheckParsing(buffer[10], checksum_low, checksum_low, "Checksum_LOW", UseSerialDebug);
101101
CheckParsing(buffer[11], checksum_high, checksum_high, "Checksum_HIGH", UseSerialDebug);
102-
102+
103103
Error = ErrorCodes::ParseFromBytes(buffer[5], buffer[4]);
104104

105105
ParameterBytes[0] = buffer[4];
@@ -129,9 +129,9 @@ Response_Packet::ErrorCodes::Errors_Enum Response_Packet::ErrorCodes::ParseFromB
129129
{
130130
case 0x00: e = NO_ERROR; break;
131131
case 0x01: e = NACK_TIMEOUT; break;
132-
case 0x02: e = NACK_INVALID_BAUDRATE; break;
133-
case 0x03: e = NACK_INVALID_POS; break;
134-
case 0x04: e = NACK_IS_NOT_USED; break;
132+
case 0x02: e = NACK_INVALID_BAUDRATE; break;
133+
case 0x03: e = NACK_INVALID_POS; break;
134+
case 0x04: e = NACK_IS_NOT_USED; break;
135135
case 0x05: e = NACK_IS_ALREADY_USED; break;
136136
case 0x06: e = NACK_COMM_ERR; break;
137137
case 0x07: e = NACK_VERIFY_FAILED; break;
@@ -200,11 +200,11 @@ bool Response_Packet::CheckParsing(byte b, byte propervalue, byte alternatevalue
200200
Serial.print(" != ");
201201
Serial.println(b, HEX);
202202
}
203-
203+
204204
}
205205
#pragma endregion
206206

207-
#pragma region -= Data_Packet =-
207+
#pragma region -= Data_Packet =-
208208
//void Data_Packet::StartNewPacket()
209209
//{
210210
// Data_Packet::NextPacketID = 0;
@@ -250,7 +250,7 @@ void FPS_GT511C3::Open()
250250
delete packetbytes;
251251
}
252252

253-
// According to the DataSheet, this does nothing...
253+
// According to the DataSheet, this does nothing...
254254
// Implemented it for completeness.
255255
void FPS_GT511C3::Close()
256256
{
@@ -316,7 +316,7 @@ bool FPS_GT511C3::ChangeBaudRate(int baud)
316316
SendCommand(packetbytes, 12);
317317
Response_Packet* rp = GetResponse();
318318
bool retval = rp->ACK;
319-
if (retval)
319+
if (retval)
320320
{
321321
_serial.end();
322322
_serial.begin(baud);
@@ -399,7 +399,7 @@ int FPS_GT511C3::EnrollStart(int id)
399399
}
400400

401401
// Gets the first scan of an enrollment
402-
// Return:
402+
// Return:
403403
// 0 - ACK
404404
// 1 - Enroll Failed
405405
// 2 - Bad finger
@@ -426,7 +426,7 @@ int FPS_GT511C3::Enroll1()
426426
}
427427

428428
// Gets the Second scan of an enrollment
429-
// Return:
429+
// Return:
430430
// 0 - ACK
431431
// 1 - Enroll Failed
432432
// 2 - Bad finger
@@ -454,7 +454,7 @@ int FPS_GT511C3::Enroll2()
454454

455455
// Gets the Third scan of an enrollment
456456
// Finishes Enrollment
457-
// Return:
457+
// Return:
458458
// 0 - ACK
459459
// 1 - Enroll Failed
460460
// 2 - Bad finger
@@ -645,7 +645,7 @@ bool FPS_GT511C3::CaptureFinger(bool highquality)
645645
// Gets a template from the fps (498 bytes) in 4 Data_Packets
646646
// Use StartDataDownload, and then GetNextDataPacket until done
647647
// Parameter: 0-199 ID number
648-
// Returns:
648+
// Returns:
649649
// 0 - ACK Download starting
650650
// 1 - Invalid position
651651
// 2 - ID not used (no template to download
@@ -658,11 +658,11 @@ bool FPS_GT511C3::CaptureFinger(bool highquality)
658658
//return false;
659659
//}
660660

661-
// Uploads a template to the fps
661+
// Uploads a template to the fps
662662
// Parameter: the template (498 bytes)
663663
// Parameter: the ID number to upload
664664
// Parameter: Check for duplicate fingerprints already on fps
665-
// Returns:
665+
// Returns:
666666
// 0-199 - ID duplicated
667667
// 200 - Uploaded ok (no duplicate if enabled)
668668
// 201 - Invalid position
@@ -686,7 +686,7 @@ bool FPS_GT511C3::CaptureFinger(bool highquality)
686686
// may revisit this if I find a need for it
687687
//}
688688

689-
// Returns the next data packet
689+
// Returns the next data packet
690690
// Not implemented due to memory restrictions on the arduino
691691
// may revisit this if I find a need for it
692692
//Data_Packet GetNextDataPacket()
@@ -715,7 +715,7 @@ void FPS_GT511C3::SendCommand(byte cmd[], int length)
715715
_serial.write(cmd, length);
716716
if (UseSerialDebug)
717717
{
718-
Serial.print("FPS - SEND: ");
718+
Serial.print("FPS - SEND: ");
719719
SendToSerial(cmd, length);
720720
Serial.println();
721721
}
@@ -744,7 +744,7 @@ Response_Packet* FPS_GT511C3::GetResponse()
744744
}
745745
Response_Packet* rp = new Response_Packet(resp, UseSerialDebug);
746746
delete resp;
747-
if (UseSerialDebug)
747+
if (UseSerialDebug)
748748
{
749749
Serial.print("FPS - RECV: ");
750750
SendToSerial(rp->RawBytes, 12);
@@ -771,8 +771,8 @@ void FPS_GT511C3::SendToSerial(byte data[], int length)
771771
void FPS_GT511C3::serialPrintHex(byte data)
772772
{
773773
char tmp[16];
774-
sprintf(tmp, "%.2X",data);
775-
Serial.print(tmp);
774+
sprintf(tmp, "%.2X",data);
775+
Serial.print(tmp);
776776
}
777777
#pragma endregion
778778

0 commit comments

Comments
 (0)