Hi,
So I was having an error which caused my application to stall in the "do_stop_check" part of the nrf_drv_twi.c file, so I added a bit of code to check if I could figure out the issue. This code caused the stall to happen immediatley instead of it happening after a good amount of time (which was new). So I removed the code I put and now my application is stalling before it even starts the main loop. When I put back the code it goes back to stalling at nrf_drv_twi.c immediately but I can't get it back to what it was before. Please someone help.
Here is the code I added:
// In the top
uint8_t do_stop_check_count = 0;
// At the end of the static bool twi_transfer function before the last statement (return true;)
if(do_stop_check_count >= 5){
do_stop_check_count = 0;
return false;
} else {
do_stop_check_count++;
}
Thank you in advance,
Robert