{%
    -- 不存在风扇对象
    if #GetCoolingFanList == 0 then
        io.write('Get fan mode and fan level failed.')
        return
    end
    if CtrlMode == 'Auto' then
        echo('Current mode: auto')
    elseif CtrlMode == 'Mixed' then
        echo('Current mode: mixed')
    else
        echo('Current mode: manual, timeout ' .. TimeOut .. ' seconds.\n')
        table.sort(GetCoolingFanList, function(a, b)
            return a.FanId < b.FanId
        end)
        echo('Manual fan level:')
        for i = 1, #GetCoolingFanList do
            local sep = (i%4 == 1 and '\n' or ', ')
            echo(string.format('%sFan%u: %u', sep, GetCoolingFanList[i].FanId, GetCoolingFanList[i].Level))
        end
    end
%}