From 06f741ca0e709422e87a956e5b274af345f6ba2a Mon Sep 17 00:00:00 2001 From: Pete Moore Date: Wed, 13 Nov 2024 16:19:05 -0500 Subject: [PATCH] FIXED: cflashy: compatibility with macOS macOS supports fewer serial baud rates than Linux, and so the incompatible baud rates have been removed when compiling under macOS. --- tools/cflashy.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/cflashy.c b/tools/cflashy.c index 9488bdae..2b822dc3 100644 --- a/tools/cflashy.c +++ b/tools/cflashy.c @@ -95,6 +95,7 @@ static speed_t Baud2Speed (unsigned nBaud) {57600, B57600}, {115200, B115200}, {230400, B230400}, +#ifndef __APPLE__ {460800, B460800}, {500000, B500000}, {576000, B576000}, @@ -107,6 +108,7 @@ static speed_t Baud2Speed (unsigned nBaud) {3000000, B3000000}, {3500000, B3500000}, {4000000, B4000000}, +#endif {0, B0} };