Okay, here are a few options for the commit message, ranging from simple to more detailed (using the Conventional Commits format as a suggestion). Choose the one that best fits your project's style.
Option 1: Simple & Direct
Update default serial port for Linux
Changed the default serial device from '/dev/cu.usbmodem103' to
'/dev/ttyACM0', which is the standard name on most Linux distributions
for the target development board.
Option 2: Slightly More Context
Set default serial port to /dev/ttyACM0 for Linux compatibility
The previous default '/dev/cu.usbmodem103' is common on macOS.
Updated the default `serdev` to '/dev/ttyACM0' as this is the typical
device path for USB CDC-ACM devices (like the target board) on the
majority of Linux systems. This improves out-of-the-box usability
for Linux users.
Option 3: Conventional Commit Format (Recommended for many projects)
Fix(serial): Set default serial port to /dev/ttyACM0 for Linux
The default serial device was previously set to '/dev/cu.usbmodem103',
which is specific to macOS environments. On most Linux distributions,
the target development board (a USB CDC-ACM device) typically appears
as '/dev/ttyACM0'.
This change updates the default `serdev` variable to '/dev/ttyACM0'
to ensure the script works correctly by default for the common Linux
use case, reducing the need for manual configuration.
Choose the one that feels right:
- Option 1: If you prefer very short messages.
- Option 2: A good balance of brevity and context.
- Option 3: If your project follows Conventional Commits or you want a more structured and descriptive message. It clearly labels the change as a fix (
Fix) related to the serial (serial) component.