Recompute listing_device_name_length_max for MacOS case, too.

This commit is contained in:
Robert Lipe 2024-07-09 18:23:19 -05:00 committed by Martin Lund
parent 53bb2a6ad1
commit fc0c6f61d2

View file

@ -1883,6 +1883,12 @@ GList *tty_search_for_serial_devices(void)
// Add device information to device list
device_list = g_list_append(device_list, device);
// Update length of longest device name string
if (strlen(device->path) > listing_device_name_length_max)
{
listing_device_name_length_max = strlen(device->path);
}
}
if (g_list_length(device_list) == 0)