diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-10-23 00:09:32 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-10-23 10:43:15 +0000 |
commit | a201b97200e097c6fd929c8d8fec24c2b04184e5 (patch) | |
tree | 8a32634f4f8984ea9cabdb4ccef5ce6b9977fc11 | |
parent | 3dcf38f7dc91c3e0542b3b7a29b19f95891bda59 (diff) |
library/TRXC_Types.ttcn: correct FAKE_RSSI command template
Absolute form of FAKE_RSSI command shall contain an optional
threshold value. Otherwise it's interpreted as relative form.
Change-Id: Ief89b2601277488bb1782b981aff1061ddaa6637
-rw-r--r-- | library/TRXC_Types.ttcn | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/TRXC_Types.ttcn b/library/TRXC_Types.ttcn index 1a37a8c3..77666d97 100644 --- a/library/TRXC_Types.ttcn +++ b/library/TRXC_Types.ttcn @@ -58,10 +58,10 @@ external function enc_TrxcMessage(in TrxcMessage id) return charstring external function dec_TrxcMessage(in charstring id) return TrxcMessage with { extension "prototype(convert) decode(TEXT)" }; -template (value) TrxcMessage ts_TRXC_FAKE_RSSI(uint8_t rssi) := { +template (value) TrxcMessage ts_TRXC_FAKE_RSSI(uint8_t rssi, int16_t thresh := 0) := { cmd := { verb := "FAKE_RSSI", - params := { int2str(rssi) } + params := { int2str(rssi), int2str(thresh) } } } |