Set value and value2 for tempe

This commit is contained in:
Ivor Hewitt
2025-01-26 19:41:55 +00:00
committed by Alejandro Martinez
parent 95315fd8e7
commit 2094af57e2

View File

@@ -1260,8 +1260,10 @@ void ANTChannel::broadcastEvent(unsigned char *ant_message)
case CHANNEL_TYPE_TEMPE:
{
if (antMessage.tempValid)
parent->setTemp(antMessage.temp/100.0);
if (antMessage.tempValid) {
value = value2 = antMessage.temp/100.0;
parent->setTemp(value);
}
}
break;