mirror of
https://github.com/rvtr/ctr_eFuse.git
synced 2025-11-02 00:11:04 -04:00
main.c:small fix
git-svn-id: file:///Volumes/Transfer/gigaleak_20231201/2020-09-30%20-%20paladin.7z/paladin/ctr_eFuse@186 ff987cc8-cf2f-4642-8568-d52cce064691
This commit is contained in:
parent
cf1c526c3e
commit
b1df465533
@ -252,8 +252,13 @@ int main(int ac, char *argv[])
|
||||
device_id[4] = (u32)((counter2 >> 32) & 0xffffffff);
|
||||
|
||||
// id[0] が 0x100 毎に鍵を換える
|
||||
if ( device_id[0] % 0x100 )
|
||||
bonding_option = BONDING_OPTION_PROD ? BONDING_OPTION_DEV : BONDING_OPTION_PROD;
|
||||
if ( (counter0 % 0x100) == 0 )
|
||||
{
|
||||
if ( bonding_option == BONDING_OPTION_PROD )
|
||||
bonding_option = BONDING_OPTION_DEV;
|
||||
else
|
||||
bonding_option = BONDING_OPTION_PROD;
|
||||
}
|
||||
|
||||
time_start = gettimeofday_sec();
|
||||
ret_code = cr_generate_id( device_id, id, bonding_option );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user