The first sentence is incorrect. The second sentence corrects the first sentence by creating a parenthetic clause ("which...devices"). The sentence is complete without the clause.