So I have this auxiliaryTask which sends I2c stuff to the PWM LED drivers and a LCD display. Now I'm scheduling this every 500 audio frames (so quite often). This auxTask looks like this
void updateGUI(void*)
{
if (gAnyValueChanged)
{
// send things over i2c
// code not copypasted into this post but is still there :)
}
else
{
// nothing
}
}
So I was wondering if this puts any load on the CPU if ´´´gAnyValueChanged == false´´´
I thought of taking the if statement outside this function and putting it around the point where the task is scheduled.
So does an empty auxTask being scheduled and executed put any load on the CPU?