fix gcc warning, probably also the logic

comparing two char pointers doesn't compare the strings
Save sync gpu setting to dtm header.