mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
style
This commit is contained in:
parent
b7ba46d38e
commit
e9b493ead6
1 changed files with 51 additions and 52 deletions
|
@ -2614,12 +2614,12 @@ static int CmdT55xxSetDeviceConfig(const char *Cmd) {
|
||||||
if (errors || cmdp == 0) return usage_lf_deviceconfig();
|
if (errors || cmdp == 0) return usage_lf_deviceconfig();
|
||||||
|
|
||||||
t55xx_config conf = {0};
|
t55xx_config conf = {0};
|
||||||
/* if (erase) {
|
/* if (erase) {
|
||||||
memset (&conf,0xff, sizeof(conf));
|
memset (&conf,0xff, sizeof(conf));
|
||||||
printf ("Conf.m[0] %x\n",conf.m[0].start_gap);
|
printf ("Conf.m[0] %x\n",conf.m[0].start_gap);
|
||||||
*/
|
*/
|
||||||
//
|
//
|
||||||
if (set_defaults){
|
if (set_defaults) {
|
||||||
// fixed bit length
|
// fixed bit length
|
||||||
conf.m[T55xx_DLMode_Fixed].start_gap = 29 * 8;
|
conf.m[T55xx_DLMode_Fixed].start_gap = 29 * 8;
|
||||||
conf.m[T55xx_DLMode_Fixed].write_gap = 17 * 8;
|
conf.m[T55xx_DLMode_Fixed].write_gap = 17 * 8;
|
||||||
|
@ -2656,8 +2656,7 @@ static int CmdT55xxSetDeviceConfig(const char *Cmd) {
|
||||||
conf.m[T55xx_DLMode_1of4].write_2 = 47 * 8;
|
conf.m[T55xx_DLMode_1of4].write_2 = 47 * 8;
|
||||||
conf.m[T55xx_DLMode_1of4].write_3 = 63 * 8;
|
conf.m[T55xx_DLMode_1of4].write_3 = 63 * 8;
|
||||||
|
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
|
|
||||||
conf.m[downlink_mode].start_gap = startgap * 8;
|
conf.m[downlink_mode].start_gap = startgap * 8;
|
||||||
conf.m[downlink_mode].write_gap = writegap * 8;
|
conf.m[downlink_mode].write_gap = writegap * 8;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue