Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: main.cpp
- Revision:
- 4:1f708415c442
- Parent:
- 3:1d0c09e43e22
--- a/main.cpp Tue May 13 11:04:01 2014 +0000 +++ b/main.cpp Tue May 13 13:54:32 2014 +0000 @@ -55,12 +55,11 @@ pc.printf("Input new device ID in hex (0x80 to 0xFE): 0x"); pc.scanf("%x", &id); - id = 0x90; - id &= 0xFC; if(id>=0x80 && id<=0xFE) { valid = 1; + otp.clear_registers(); otp.set_id(id); } }while(valid==0);