Make constants less horrible.
Warn if unrecognized device type.