mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-18 07:52:14 +01:00
c0ab536b7b
This method takes care of setting the serial.port preference to the given value, as well as deriving the serial.port.file preference. This should prevent duplicate code in the future. Note that a second copy of this code lives in SerialUploader, but that doesn't write to the global Preferences but a local prefs map. Since the global Preferences are currently static, there is no way to share code between these two copies.