Capture EAPOL packets

This commit is contained in:
Just Call Me Koko
2020-03-21 18:54:14 -04:00
parent 56acee78e4
commit 40e11b71f0
14 changed files with 555 additions and 27 deletions

View File

@@ -8,7 +8,7 @@ bool SDInterface::initSD() {
this->supported = false;
return false;
}
else {
else if (!this->supported){
this->supported = true;
this->cardType = SD.cardType();
if (cardType == CARD_MMC)
@@ -159,7 +159,16 @@ void SDInterface::performUpdate(Stream &updateSource, size_t updateSize) {
}
}
void SDInterface::main() {
void SDInterface::main(uint32_t currentTime) {
/*
if (currentTime != 0) {
if (currentTime - initTime >= 3000) {
//Serial.println("Checking for SD");
this->initTime = millis();
this->initSD();
}
}*/
if ((this->supported) && (this->do_save)) {
//Serial.println("Saving packet...");
buffer_obj.forceSave(&SD);