mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
fix: no length tests...
This commit is contained in:
parent
78ebac8e6f
commit
fa2aba1532
1 changed files with 3 additions and 0 deletions
|
@ -123,12 +123,15 @@ bool uart_receive(const serial_port sp, byte_t* p_rx, size_t pszMaxRxLen, size_t
|
||||||
|
|
||||||
bool uart_send(const serial_port sp, const byte_t* p_tx, const size_t len) {
|
bool uart_send(const serial_port sp, const byte_t* p_tx, const size_t len) {
|
||||||
DWORD txlen = 0;
|
DWORD txlen = 0;
|
||||||
|
return WriteFile(((serial_port_windows*)sp)->hPort, p_tx, len, &txlen, NULL);
|
||||||
|
/*
|
||||||
bool res = WriteFile(((serial_port_windows*)sp)->hPort, p_tx, len, &txlen, NULL);
|
bool res = WriteFile(((serial_port_windows*)sp)->hPort, p_tx, len, &txlen, NULL);
|
||||||
if ( !res )
|
if ( !res )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
printf("TX %u\n", txlen);
|
printf("TX %u\n", txlen);
|
||||||
return (txlen != 0);
|
return (txlen != 0);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
bool uart_set_speed(serial_port sp, const uint32_t uiPortSpeed) {
|
bool uart_set_speed(serial_port sp, const uint32_t uiPortSpeed) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue