tnt has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-e1d/+/36690?usp=email )


Change subject: iCE1usb: Transmit AIS events to clients
......................................................................

iCE1usb: Transmit AIS events to clients

Signed-off-by: Sylvain Munaut <t...@246tnt.com>
Change-Id: I4a35a2ab2537cbc9ecec381ab5078c1b08067925
---
M src/usb.c
1 file changed, 22 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-e1d refs/changes/90/36690/1

diff --git a/src/usb.c b/src/usb.c
index e4ba6c0..bb1a294 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -420,6 +420,18 @@
                }
        }

+       if ((errcnt->flags & ICE1USB_ERR_F_AIS) != (last->flags & 
ICE1USB_ERR_F_AIS)) {
+               LOGPLI(line, DE1D, LOGL_ERROR, "AIS (BLUE) %s\n",
+                       errcnt->flags & ICE1USB_ERR_F_AIS ? "PRESENT" : 
"ABSENT");
+               if (errcnt->flags & ICE1USB_ERR_F_AIS) {
+                       osmo_e1dp_server_event(line->intf->e1d->srv, 
E1DP_EVT_AIS_ON,
+                                              line->intf->id, line->id, 0, 
NULL, 0);
+               } else {
+                       osmo_e1dp_server_event(line->intf->e1d->srv, 
E1DP_EVT_AIS_OFF,
+                                              line->intf->id, line->id, 0, 
NULL, 0);
+               }
+       }
+
        if ((errcnt->flags & ICE1USB_ERR_F_RAI) != (last->flags & 
ICE1USB_ERR_F_RAI)) {
                LOGPLI(line, DE1D, LOGL_ERROR, "Remote Alarm (YELLOW) %s\n",
                        errcnt->flags & ICE1USB_ERR_F_RAI ? "PRESENT" : 
"ABSENT");

--
To view, visit https://gerrit.osmocom.org/c/osmo-e1d/+/36690?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-e1d
Gerrit-Branch: master
Gerrit-Change-Id: I4a35a2ab2537cbc9ecec381ab5078c1b08067925
Gerrit-Change-Number: 36690
Gerrit-PatchSet: 1
Gerrit-Owner: tnt <t...@246tnt.com>
Gerrit-MessageType: newchange

Reply via email to