At a glance I would say commenting out
interrupts() is the correct thing to do. Can anyone tell us why are they even there?
The purpose of
noInterrupts() is to prevent interrupt handlers from running in the middle of a critical section of code. But this makes no sense -- we are already in an interrupt handler here, where protection from other interrupts is already in effect until the function returns. At least that's the case for other Arduino microcontrollers -- admittedly, I haven't coded much for ESP32. Someone say something if I misunderstand this here.
Furthermore, setting a byte size variable to a constant value like 1 isn't the sort of thing that counts as a critical section of code that would ever need
noInterrupts() in the first place.
I say it's safe to comment these two lines out and then I raise the question why were they ever there.