(info)
Print important waraning based on LNB choice
Print important waraning based on LNB choice
Print important waraning based on LNB choice
def _print_lnb_info(info):
    """Print important waraning based on LNB choice"""
    lnb = info['lnb']
    sat = info['sat']
    setup = info['setup']

    if ((lnb['pol'] != "Dual") and (lnb['pol'] != sat['pol'])):
        util.print_header("LNB Information")
        lnb_pol = "Vertical" if lnb['pol'] == "V" else "Horizontal"
        logging.warning(
            textwrap.fill(
                "Your LNB has {} polarization and the signal from {} has the "
                "opposite polarization.".format(lnb_pol, sat['name'])))
        util.prompt_for_enter()

    if ((lnb['pol'] == "Dual") and (setup['type'] == defs.sdr_setup_type)):
        util.print_header("LNB Information")
        logging.warning(
            textwrap.fill(
                "Your LNB has dual polarization. Check the voltage of your "
                "power supply in order to discover the polarization on which "
                "your LNB will operate."))
        util.prompt_for_enter()
def _print_lnb_info ( info ) : lnb = info [ 'lnb' ] sat = info [ 'sat' ] setup = info [ 'setup' ] if ( ( lnb [ 'pol' ] != "Dual" ) and ( lnb [ 'pol' ] != sat [ 'pol' ] ) ) : util . print_header ( "LNB Information" ) lnb_pol = "Vertical" if lnb [ 'pol' ] == "V" else "Horizontal" logging . warning ( textwrap . fill ( "Your LNB has {} polarization and the signal from {} has the " "opposite polarization." . format ( lnb_pol , sat [ 'name' ] ) ) ) util . prompt_for_enter ( ) if ( ( lnb [ 'pol' ] == "Dual" ) and ( setup [ 'type' ] == defs . sdr_setup_type ) ) : util . print_header ( "LNB Information" ) logging . warning ( textwrap . fill ( "Your LNB has dual polarization. Check the voltage of your " "power supply in order to discover the polarization on which " "your LNB will operate." ) ) util . prompt_for_enter ( )