mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
remove some cppcheck warnings
This commit is contained in:
parent
dd9005719a
commit
1ebfa897c8
24 changed files with 145 additions and 146 deletions
|
@ -153,7 +153,6 @@ static void uart_init(uint8_t *data) {
|
|||
static void uart_bit(uint8_t bit) {
|
||||
static uint8_t buf = 0xff;
|
||||
static uint8_t n_buf;
|
||||
static uint8_t msg_byte;
|
||||
static int nmsg_byte;
|
||||
buf <<= 1;
|
||||
buf |= bit ? 1 : 0;
|
||||
|
@ -166,6 +165,7 @@ static void uart_bit(uint8_t bit) {
|
|||
nmsg_byte = 0;
|
||||
}
|
||||
} else {
|
||||
static uint8_t msg_byte;
|
||||
n_buf++;
|
||||
if (n_buf == 8) {
|
||||
msg_byte >>= 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue