X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/0644d5e3a3ed255fea1084c0af564c00f592b36c..e17660d5f7dfa44447068e7897ee6454157d2ae1:/armsrc/legicrf.c?ds=sidebyside diff --git a/armsrc/legicrf.c b/armsrc/legicrf.c index 074a0f78..27dcc297 100644 --- a/armsrc/legicrf.c +++ b/armsrc/legicrf.c @@ -391,7 +391,7 @@ int legic_write_byte(int byte, int addr, int addr_sz) { uint32_t cmd_sz = addr_sz+1+8+4; //crc+data+cmd legic_prng_forward(2); /* we wait anyways */ - while(timer->TC_CV < 387) ; /* ~ 258us */ + while(timer->TC_CV < 387) {}; /* ~ 258us */ frame_send_rwd(cmd, cmd_sz); //== wait for ack ==================================== @@ -418,7 +418,7 @@ int legic_write_byte(int byte, int addr, int addr_sz) { } } timer->TC_CCR = AT91C_TC_SWTRG; - while(timer->TC_CV > 1) ; /* Wait till the clock has reset */ + while(timer->TC_CV > 1) {}; /* Wait till the clock has reset */ return -1; }