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
This commit is contained in:
Vadim Yanitskiy 2018-10-23 00:09:32 +02:00 committed by Pau Espin Pedrol
parent 3dcf38f7dc
commit a201b97200
1 changed files with 2 additions and 2 deletions

View File

@ -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) }
}
}