Revert "update: Moved board detection to a function"

Reverts Foxiy/board2slides#6