summaryrefslogtreecommitdiff
path: root/code/ecp/fe310
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-02-26 03:49:26 +0100
committerUros Majstorovic <majstor@majstor.org>2020-02-26 03:49:26 +0100
commit4d45c548bfaf27bd2135384b3ffd0c4bdb41521c (patch)
tree5672c8efe1c87dd0539fc686b2b9b521ae872647 /code/ecp/fe310
parent06b5a32ca82128edd807542d633d34897e0f43ef (diff)
ecp/eos new compatibility changes
Diffstat (limited to 'code/ecp/fe310')
-rw-r--r--code/ecp/fe310/time.c3
-rw-r--r--code/ecp/fe310/transport.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/code/ecp/fe310/time.c b/code/ecp/fe310/time.c
index a5c109d..8458a2d 100644
--- a/code/ecp/fe310/time.c
+++ b/code/ecp/fe310/time.c
@@ -19,7 +19,8 @@ static void timer_handler(unsigned char type) {
}
int ecp_tm_init(ECPContext *ctx) {
- eos_timer_set_handler(EOS_TIMER_ETYPE_ECP, timer_handler, EOS_NET_FLAG_BACQ);
+ eos_timer_set_handler(EOS_TIMER_ETYPE_ECP, timer_handler);
+ eos_net_acquire_for_evt(EOS_EVT_TIMER | EOS_TIMER_ETYPE_ECP, 1);
return ECP_OK;
}
diff --git a/code/ecp/fe310/transport.c b/code/ecp/fe310/transport.c
index defea5d..4f50049 100644
--- a/code/ecp/fe310/transport.c
+++ b/code/ecp/fe310/transport.c
@@ -65,7 +65,7 @@ int ecp_tr_open(ECPSocket *sock, void *addr_s) {
sock->sock = 0;
return ECP_ERR_SEND;
}
- eos_sock_set_handler(sock->sock, packet_handler, 0);
+ eos_sock_set_handler(sock->sock, packet_handler);
_ecp_tr_sock = sock;
return ECP_OK;
}