app/extras/undervolt.py
def convert_offset(mV):
    """
    Calculate offset part of MSR value
    :param mV: voltage offset
    :return hex string

    >>> from undervolt import convert_offset
    >>> format(convert_offset(-50), '08x')
    'f9a00000'

    """
    return convert_rounded_offset(int(round(mV*1.024)))

    Calculate offset part of MSR value
    :param mV: voltage offset
    :return hex string

    >>> from undervolt import convert_offset
    >>> format(convert_offset(-50), '08x')
    'f9a00000'

    
Calculate offset part of MSR value
:param mV: voltage offset
:return hex string


Calculate offset part of MSR value : param mV : voltage offset : return hex string
def convert_offset(mV):
    return convert_rounded_offset(int(round(mV*1.024)))
def convert_offset ( mV ) : return convert_rounded_offset ( int ( round ( mV * 1.024 ) ) )
Calculate offset part of MSR value
:param mV: voltage offset
:return hex string
Calculate offset part of MSR value : param mV : voltage offset : return hex string
"""
    Calculate offset part of MSR value
    :param mV: voltage offset
    :return hex string

    >>> from undervolt import convert_offset
    >>> format(convert_offset(-50), '08x')
    'f9a00000'

    """
mV