fixed tipo: RepititionAllowed

This commit is contained in:
Dominik Westner 2020-11-06 22:43:22 +01:00
parent f8dc031486
commit 4932b85c8b
3 changed files with 4 additions and 4 deletions

View File

@ -219,12 +219,12 @@ void CemiFrame::frameType(FrameFormat type)
Repetition CemiFrame::repetition() const
{
return (Repetition)(_ctrl1[0] & RepititionAllowed);
return (Repetition)(_ctrl1[0] & RepetitionAllowed);
}
void CemiFrame::repetition(Repetition rep)
{
_ctrl1[0] &= ~RepititionAllowed;
_ctrl1[0] &= ~RepetitionAllowed;
_ctrl1[0] |= rep;
}

View File

@ -126,7 +126,7 @@ bool DataLinkLayer::sendTelegram(NPDU & npdu, AckType ack, uint16_t destinationA
frame.sourceAddress(sourceAddr);
frame.addressType(addrType);
frame.priority(priority);
frame.repetition(RepititionAllowed);
frame.repetition(RepetitionAllowed);
frame.systemBroadcast(systemBroadcast);
if (npdu.octetCount() <= 15)

View File

@ -95,7 +95,7 @@ enum Repetition
{
NoRepitiion = 0,
WasRepeated = 0,
RepititionAllowed = 0x20,
RepetitionAllowed = 0x20,
WasNotRepeated = 0x20,
};