Fixed inconsistent handling of auxiliary port numbers when claiming from plugins.

New API call added related to this.
This commit is contained in:
Terje Io
2025-01-09 12:17:25 +01:00
parent 3f37d8c478
commit 22a8a08a95
12 changed files with 147 additions and 36 deletions

View File

@@ -3,7 +3,7 @@
Part of grblHAL
Copyright (c) 2017-2024 Terje Io
Copyright (c) 2017-2025 Terje Io
Copyright (c) 2011-2016 Sungeun K. Jeon for Gnea Research LLC
Copyright (c) 2009-2011 Simen Svale Skogsrud
@@ -234,4 +234,22 @@ uint_fast8_t bit_count (uint32_t bits);
void dummy_handler (void);
#ifdef _WIN32
static int ffs (int i)
{
int idx = 0;
while(i) {
idx++;
if(i & 1)
break;
i >>= 1;
}
return idx;
}
#endif // _WIN32
#endif