pull/2/head
ouki-wang 6 years ago
parent d71321f763
commit fe7f222abb
  1. 10
      DFRobot_AS3935_I2C.cpp

@ -191,19 +191,15 @@ uint8_t DFRobot_AS3935_I2C::setMinStrikes(uint8_t minStrk)
{
singRegWrite(0x02, 0x30, 0x00);
return 1;
}
else if(9 > minStrk)
}else if(9 > minStrk)
{
singRegWrite(0x02, 0x30, 0x10);
return 5;
}
else if(16 > minStrk)
}else if(16 > minStrk)
{
singRegWrite(0x02, 0x30, 0x20);
return 9;
}
else
{
}else{
singRegWrite(0x02, 0x30, 0x30);
return 16;
}

Loading…
Cancel
Save