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 ecc4c08a22
+2 -2
View File
@@ -27,7 +27,7 @@ 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;
}
@@ -57,4 +57,4 @@ bool Mac::compare(Mac target){
return true;
}