if (countFan == 1) {
for (uint8_t one = 0; one < 5; one++) {
tabSetFan[one] = tab1[one];
}
} else {
for (uint8_t num = 0; num < 5; num++)
{
if (tab1[num])
{
if(lastSetFan==num){
for (uint8_t one = 0; one < 5; one++) {
tab1[one]=tabSetFan[one];
tabSetFan[one]=false;
}
}
}
}