a1exdandy / checkm8-a5

checkm8 port for S5L8940X/S5L8942X/S5L8945X
MIT License
162 stars 127 forks source link

Will you consider adding a few lines to the Arduino sketch? #9

Open dtpoirot opened 4 years ago

dtpoirot commented 4 years ago

logs.txt

I added a line in setup(), just before the return: Serial.println("usb init");

...by the way, if Usb.Init() fails, you print an error and then proceed with no USB...

I also added a line in loop(), after the test for vendorId and productId: Serial.print("Apple DFU found (vendorId: "); Serial.print(0x5ac); Serial.print(", productId: "); Serial.print(0x1227); Serial.println(")");

I noticed that I got different product IDs, based on how the device booted. If the iPad was running, I got one number, if it was in 'restore mode', I got a different number. If i reset into DFU, the code proceeded correctly!

running: Non Apple DFU found (vendorId: 1452, productId: 4737) ...then, in 'restore': Non Apple DFU found (vendorId: 1452, productId: 4779) ...then in DFU: Apple DFU found (vendorId: 1452, productId: 4647)