diff options
author | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-09-02 21:15:40 +0000 |
---|---|---|
committer | tzafrir <tzafrir@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2006-09-02 21:15:40 +0000 |
commit | ae4600bbda53ea9b2377efabdedd42968fa3efb4 (patch) | |
tree | 8f25bd8c381de505e41db1f77744e987a54fb246 /xpp/card_fxo.c | |
parent | 49a61cde48299403f0b8839b618bcdc45fdebb9d (diff) |
Show in /proc/xpp/XBUS-?/XPD-?/fxo_info also the noring_thresh[]
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@1379 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'xpp/card_fxo.c')
-rw-r--r-- | xpp/card_fxo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xpp/card_fxo.c b/xpp/card_fxo.c index 7255a11..d905a38 100644 --- a/xpp/card_fxo.c +++ b/xpp/card_fxo.c @@ -847,6 +847,11 @@ static int proc_fxo_info_read(char *page, char **start, off_t off, int count, in if(!IS_SET(xpd->digital_outputs, i) && !IS_SET(xpd->digital_inputs, i)) len += sprintf(page + len, "%d ", priv->ring_thresh[i]); } + len += sprintf(page + len, "\n\t%-17s: ", "noring_thresh"); + for_each_line(xpd, i) { + if(!IS_SET(xpd->digital_outputs, i) && !IS_SET(xpd->digital_inputs, i)) + len += sprintf(page + len, "%d ", priv->noring_thresh[i]); + } #endif len += sprintf(page + len, "\n\t%-17s: ", "battery"); for_each_line(xpd, i) { |