extern SerialPreset SerialPreset;
What do you think that this is doing? It probably is not doing what you think it is.