Possible race condition due to missing synchronization. Better set a flag here and update settings within task main loop. I know this has not been introduced here but maybe its a nice opportunity to fix it :)