修正list-device按鈕判斷