diff --git a/src/main.c b/src/main.c index b0cb1e4..bb39976 100644 --- a/src/main.c +++ b/src/main.c @@ -728,6 +728,7 @@ void gpio_init() { static linkstate_t do_uninit(struct net_buf const *buf) { switch (packet_get_type(buf)) { case H5_SYNC: + LOG_DBG("RX'd SYNC: UNINIT -> UNINIT"); h5_send_sync_response(); return UNINIT; case H5_SYNC_RESPONSE: @@ -768,9 +769,10 @@ static linkstate_t do_active(struct net_buf *buf) { switch (packet_get_type(buf)) { case H5_SYNC: LOG_DBG("SYNC in ACTIVE state: ACTIVE -> UNINIT"); + h5_send_sync(); return UNINIT; case H5_SYNC_RESPONSE: - LOG_DBG("Bad packet for ACTIVE state: ACTIVE -> UNINIT"); + LOG_DBG("SYNC_RESPONSE in ACTIVE state: ACTIVE -> UNINIT"); h5_send_sync(); return UNINIT; case H5_CONFIG: