another way to completely crash Pozyx
ivannunyadambiz opened this issue · 1 comments
ivannunyadambiz commented
sequentially reading registers like this:
uint8_t data;
for(int i = 0; i < 0xff; i++)
{
status = Pozyx.regRead(i, &data, 1);
if(status != POZYX_SUCCESS)
{
Serial.println(status);
Serial.print("ERROR: ");
Serial.println(Pozyx.getSystemError());
delay(100);
abort();
}
else
{
Serial.print("0x");
Serial.print(i, HEX);
Serial.print(": ");
Serial.println(data, BIN);
}
delay(100);
}
make Pozyx crash and reset the arduino. same as with the Pozyx.resetSystem()
function.
ivannunyadambiz commented
heh. my bad. this actually DOES the same as Pozyx.resetSystem();