CHG: the thread comms refactoring from offical pm3 repo

chg: FPC com speed limited to 115200 when compiled with FPC
chg: USART remake (@drandreas)
This commit is contained in:
Chris committed 2018-09-06 21:43:20 +02:00
1 parent eb0b5116a2
commit 24eaac8681
45 files changed
+915 -949

No files matched your search

+2 -1
View File
@@ -515,6 +515,7 @@ int CmdAnalyseA(const char *Cmd){
UsbCommand c = {CMD_FPC_SEND, {0, 0, 0}};
memcpy(c.d.asBytes, data, USB_CMD_DATA_SIZE);
clearCommandBuffer();
SendCommand(&c);
@@ -522,7 +523,7 @@ int CmdAnalyseA(const char *Cmd){
if (!WaitForResponseTimeout(CMD_ACK, &resp, 2500)) {
return 1;
}
PrintAndLogEx(NORMAL, "got ack");
PrintAndLogEx(NORMAL, "got ack. Status %d", resp.arg[0]);
return 0;
PrintAndLogEx(NORMAL, "-- " _BLUE_(its my message) "\n");