Hello @HausBusDe

exactly why this is happening I cannot say, but it seems to be related to the double initialisation of Serial.begin() which is already happening through M5.begin(). As soon as I remove the Serial.begin() your code then works w/ or w/o the 'not working line'.

Thanks
Felix