For instance I am getting:
Code: Select all
(xQueueGenericReceive)- assert failed!
Code: Select all
...
static xQueueHandle DRDY_evt_queue = NULL;
static void IRAM_ATTR gpio_isr_handler(void *arg)
{
gpio_num_t gpio_num = (gpio_num_t) arg;
xQueueSendFromISR(DRDY_evt_queue, &gpio_num, NULL);
}
...
while(1)
{
if(xQueueReceive(DRDY_evt_queue, &io_num, portMAX_DELAY))
{
antal++;
voltage = Measure(spi2);
ave_voltage += (voltage - ave_voltage)/antal;
printf("Volt = %.7f Ave = %.7f\n", voltage, ave_voltage);
}
}
Does anybody know what changes I have to make to get it working on the new version?