Correcting outdated comment and some tidying

This commit is contained in:
Nav
2024-03-02 02:00:43 +00:00
parent 4aa8ed30de
commit 1de011f948
2 changed files with 8 additions and 10 deletions

View File

@@ -747,8 +747,12 @@ namespace Targets::Microchip::Avr::Avr8Bit
) const {
return static_cast<unsigned char>(
this->fuseEnableStrategy == FuseEnableStrategy::SET
? enabled ? (fuseByteValue | descriptor.bitMask) : fuseByteValue & ~(descriptor.bitMask)
: enabled ? fuseByteValue & ~(descriptor.bitMask) : (fuseByteValue | descriptor.bitMask)
? enabled
? (fuseByteValue | descriptor.bitMask)
: fuseByteValue & ~(descriptor.bitMask)
: enabled
? fuseByteValue & ~(descriptor.bitMask)
: (fuseByteValue | descriptor.bitMask)
);
}