mirror of
https://github.com/grblHAL/core.git
synced 2026-03-27 02:36:04 +08:00
Fixed inconsistent handling of auxiliary port numbers when claiming from plugins.
New API call added related to this.
This commit is contained in:
20
nuts_bolts.h
20
nuts_bolts.h
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user