on a local Project i had the Issue with random System Crash when writing to the Internal Flash (FFAT/SPIFFS).
SBUS2 disable() and Enable() funtions were made for this to switch off SBUS2 Interrupts during Flash write.
But on my local project it did not work.
void SBUS_disable(){
uart_disable_rx_intr(UART_NUM_2);
timer_set_alarm(TIMER_GROUP_0,TIMER_1,TIMER_ALARM_DIS);
}
should be changed to
void SBUS_disable() {
timer_disable_intr(TIMER_GROUP_0, TIMER_1);
uart_disable_rx_intr(UART_NUM_2);
}
void SBUS_enable() {
uart_enable_rx_intr(UART_NUM_2);
timer_enable_intr(TIMER_GROUP_0, TIMER_1);
initialize_slot_status();
enable_receiving();
}
on a local Project i had the Issue with random System Crash when writing to the Internal Flash (FFAT/SPIFFS).
SBUS2 disable() and Enable() funtions were made for this to switch off SBUS2 Interrupts during Flash write.
But on my local project it did not work.
should be changed to