Fix build error caused by multiple target devices

Signed-off-by: dr87 <nb00870@gmail.com>