What is the version of the following sentence with correct punctuation?

When not in use the crystal should be covered by a black cloth
When not in use, the crystal should be covered by a black cloth.