Commit 1a6729d2 authored by douomo's avatar douomo
Browse files

fixed console log function in common.py

parent 41cb2dba
Loading
Loading
Loading
Loading
+57 B (7.67 KiB)

File changed.

No diff preview for this file type.

+6 −6
Original line number Original line Diff line number Diff line
@@ -77,8 +77,8 @@ def set_TX_power(m, int_name, txPower):
        "tx_power" : txPower,
        "tx_power" : txPower,
    }
    }
    xml = env.get_template("configFile/setTXPower.xml.pyformat").render(context)
    xml = env.get_template("configFile/setTXPower.xml.pyformat").render(context)
    BuiltIn.log_to_console("New config for tx-powe:")
    BuiltIn().log_to_console("New config for tx-power:")
    BuiltIn.log_to_console(xml)
    BuiltIn().log_to_console(xml)
    m.edit_config(target="candidate", config=xml)
    m.edit_config(target="candidate", config=xml)
    m.commit()
    m.commit()
    time.sleep(2)
    time.sleep(2)
@@ -89,8 +89,8 @@ def set_SNR_threshold(m,int_name, t):
        "value" : t,
        "value" : t,
    }
    }
    xml = env.get_template("configFile/setSNRThreshold.xml.pyformat").render(context)
    xml = env.get_template("configFile/setSNRThreshold.xml.pyformat").render(context)
    BuiltIn.log_to_console("New config for SNR Threshold:")
    BuiltIn().log_to_console("New config for SNR Threshold:")
    BuiltIn.log_to_console(xml)
    BuiltIn().log_to_console(xml)
    m.edit_config(target="candidate", config=xml)
    m.edit_config(target="candidate", config=xml)
    m.commit()
    m.commit()


@@ -100,8 +100,8 @@ def set_RSL_threshold(m,int_name, t):
        "value" : t,
        "value" : t,
    }
    }
    xml = env.get_template("configFile/setRSLThreshold.xml.pyformat").render(context)
    xml = env.get_template("configFile/setRSLThreshold.xml.pyformat").render(context)
    BuiltIn.log_to_console("New config for RSL threshold:")
    BuiltIn().log_to_console("New config for RSL threshold:")
    BuiltIn.log_to_console(xml)
    BuiltIn().log_to_console(xml)
    m.edit_config(target="candidate", config=xml)
    m.edit_config(target="candidate", config=xml)
    m.commit()
    m.commit()