def _cr_decode(self, msg):
        """CR: Custom values"""
        if int(msg[4:6]) > 0:
            index = int(msg[4:6])-1
            return {'values': [self._cr_one_custom_value_decode(index, msg[6:12])]}
        else:
            part = 6
            ret = []
            for i in range(Max.SETTINGS.value):
                ret.append(self._cr_one_custom_value_decode(i, msg[part:part+6]))
                part += 6
            return {'values': ret}
def _cr_decode ( self , msg ) : if int ( msg [ 4 : 6 ] ) > 0 : index = int ( msg [ 4 : 6 ] ) - 1 return { 'values' : [ self . _cr_one_custom_value_decode ( index , msg [ 6 : 12 ] ) ] } else : part = 6 ret = [ ] for i in range ( Max . SETTINGS . value ) : ret . append ( self . _cr_one_custom_value_decode ( i , msg [ part : part + 6 ] ) ) part += 6 return { 'values' : ret }
CR: Custom values