def METHOD_NAME():
    index = 0
    # wait 30s for device steady
    time.sleep(30)
    while True:
        debug_init()
        ret = doAvsCtrol()
        if ret is True:
            avsinfo("%%AVSCONTROL success")
            time.sleep(5)
            exit(0)
        index += 1
        if index >= 10:
            avserror("%%DEV_MONITOR-AVS: MAC Voltage adjust failed.")
            exit(-1)
        time.sleep(1)