You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!esb_paired&& (!use_hid|| (get_status(SYS_STATUS_USB_CONNECTED)== false&&k_uptime_get() -750>start_time))) // only automatically enter pairing while not potentially communicating by usb
493
+
if (!esb_paired&& (!use_hid|| (!get_status(SYS_STATUS_USB_CONNECTED) &&k_uptime_get() -750>start_time))) // only automatically enter pairing while not potentially communicating by usb
494
494
{
495
495
esb_pair();
496
496
esb_initialize(true);
497
497
}
498
498
if (tx_errors >= TX_ERROR_THRESHOLD)
499
499
{
500
-
if (get_status(SYS_STATUS_CONNECTION_ERROR) == false && (!use_hid||get_status(SYS_STATUS_USB_CONNECTED)== false)) // only raise error while not potentially communicating by usb
500
+
if (!get_status(SYS_STATUS_CONNECTION_ERROR) && (!use_hid||!get_status(SYS_STATUS_USB_CONNECTED))) // only raise error while not potentially communicating by usb
501
501
set_status(SYS_STATUS_CONNECTION_ERROR, true);
502
502
if (use_shutdown&&k_uptime_get() -last_tx_success>CONFIG_3_SETTINGS_READ(CONFIG_3_CONNECTION_TIMEOUT_DELAY)) // shutdown if receiver is not detected // TODO: is shutdown necessary if usb is connected at the time?
503
503
{
504
504
LOG_WRN("No response from receiver in %dm", CONFIG_3_SETTINGS_READ(CONFIG_3_CONNECTION_TIMEOUT_DELAY) / 60000);
0 commit comments