Fixed loop bug in Mac library

@N0vaPixel never change a running system! This caused a bug in the beacon flood attack.
This commit is contained in:
Stefan Kremser
2017-03-16 23:04:48 +01:00
parent a71946d09a
commit e1b5f135bb

View File

@@ -27,9 +27,9 @@ void Mac::setMac(Mac adr){
bool Mac::valid(){
for(int i=0;i<6;i++){
if(adress[i] == 0xFF || adress[i] == 0x00) return false;
if(adress[i] != 0xFF && adress[i] != 0x00) return true;
}
return true;
return false;
}
String Mac::toString(){
@@ -57,4 +57,4 @@ bool Mac::compare(Mac target){
return true;
}