We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65c1e17 commit e545aa9Copy full SHA for e545aa9
src/reactor.rs
@@ -14,9 +14,13 @@ use libc as sys;
14
15
use crate::{syscall, syscall_los, syscall_los_eagain};
16
17
+// For ESP-IDF sys::FDSETSIZE is currently wrongly set to 1024 in the `libc` crate
18
+// Therefore, use a custom value for now
19
+#[cfg(target_os = "espidf")]
20
const MAX_REGISTRATIONS: usize = 20;
21
-//const FD_SEGMENT: usize = sys::FD_SETSIZE / core::mem::size_of::<sys::fd_set>();
22
+#[cfg(not(target_os = "espidf"))]
23
+const MAX_REGISTRATIONS: usize = sys::FD_SETSIZE as usize;
24
25
#[derive(EnumSetType, Debug)]
26
pub(crate) enum Event {
0 commit comments