diff options
author | Max <msuraev@sysmocom.de> | 2017-07-18 18:34:29 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-07-19 11:47:47 +0200 |
commit | 2d2fca434209f96ae2c3b9e0221c6a063d23dfd9 (patch) | |
tree | 1cfb1ef45cbf0ee6eb3b2a6eb567531afe820451 /src/osmo-bts-litecell15/hw_misc.c | |
parent | b2bbc819218c0f842ad00a1608725cccb780e6bd (diff) |
lc15: port lc15bts-mgr changes
That's mostly changes related to lc15bts-mgr from
https://gitlab.com/nrw_noa/osmo-bts branch nrw/litecell15 based on
eb5b7f80510b603579f7af6d7d5ead296c2fa260 commit.
I wanted to incorporate vty and hardcoded paths changes so we can use it
from this point without major backward-incompatible changes as a base
for future ports.
Change-Id: Iabbaedc84aaaa594150a4e5445c16dd1f6f89858
Related: SYS#3679
Diffstat (limited to 'src/osmo-bts-litecell15/hw_misc.c')
-rw-r--r-- | src/osmo-bts-litecell15/hw_misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bts-litecell15/hw_misc.c b/src/osmo-bts-litecell15/hw_misc.c index 49232b2d..9f070bba 100644 --- a/src/osmo-bts-litecell15/hw_misc.c +++ b/src/osmo-bts-litecell15/hw_misc.c @@ -69,6 +69,7 @@ int lc15bts_led_set(enum lc15bts_led_color c) rc = write(fd, cmd[0] ? "1" : "0", 2); if (rc != 2) { + close(fd); return -1; } close(fd); @@ -79,6 +80,7 @@ int lc15bts_led_set(enum lc15bts_led_color c) rc = write(fd, cmd[1] ? "1" : "0", 2); if (rc != 2) { + close(fd); return -1; } close(fd); |