Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion checkm8-a5.ino
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "Usb.h"

#define A5_8942
#define A5_8940 //This is for ipad2 (https://ipsw.me/iPad2,1/info)
#include "constants.h"

USB Usb;
Expand Down Expand Up @@ -36,6 +36,7 @@ void setup() {
if(Usb.Init() == -1)
Serial.println("usb init error");
delay(200);
pinMode(6, OUTPUT);
}

void loop() {
Expand Down Expand Up @@ -65,13 +66,15 @@ void loop() {
}
return;
}
Serial.print("Apple DFU found (vendorId: "); Serial.print(desc_buf.idVendor); Serial.print(", productId: "); Serial.print(desc_buf.idProduct); Serial.println(")");
is_apple_dfu = true;
serial_idx = desc_buf.iSerialNumber;
}

switch(checkm8_state)
{
case CHECKM8_INIT_RESET:
Serial.print("Starting.....");
for(int i = 0; i < 3; i++)
{
digitalWrite(6, HIGH);
Expand Down