Skip to content

Commit 925db68

Browse files
committed
Bugfix in ChangeBaudRate. NOTE: Something is not right yet. Further debugging needed.
1 parent 385d74b commit 925db68

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/FPS_GT511C3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ bool FPS_GT511C3::ChangeBaudRate(unsigned long baud)
416416

417417
if (UseSerialDebug) Serial.println("FPS - ChangeBaudRate");
418418
Command_Packet* cp = new Command_Packet();
419-
cp->Command = Command_Packet::Commands::Open;
419+
cp->Command = Command_Packet::Commands::ChangeBaudRate;
420420
cp->ParameterFromInt(baud);
421421
byte* packetbytes = cp->GetPacketBytes();
422422
delete cp;

src/FPS_GT511C3.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Command_Packet
2929
Open = 0x01, // Open Initialization
3030
Close = 0x02, // Close Termination
3131
UsbInternalCheck = 0x03, // UsbInternalCheck Check if the connected USB device is valid
32-
ChangeEBaudRate = 0x04, // ChangeBaudrate Change UART baud rate
32+
ChangeBaudRate = 0x04, // ChangeBaudrate Change UART baud rate
3333
SetIAPMode = 0x05, // SetIAPMode Enter IAP Mode In this mode, FW Upgrade is available
3434
CmosLed = 0x12, // CmosLed Control CMOS LED
3535
GetEnrollCount = 0x20, // Get enrolled fingerprint count

0 commit comments

Comments
 (0)