Corrected typo in OSCCAL register extraction

This commit is contained in:
Nav
2021-06-06 17:08:31 +01:00
parent a72602e542
commit 5ba95e6967

View File

@@ -586,8 +586,8 @@ std::optional<Register> TargetDescriptionFile::getOscillatorCalibrationRegister(
if (cpuRegisterGroup.has_value()) {
auto& cpuRegisters = cpuRegisterGroup->registersMappedByName;
if (cpuRegisters.contains("oscall")) {
return cpuRegisters.at("oscall");
if (cpuRegisters.contains("osccal")) {
return cpuRegisters.at("osccal");
} else if (cpuRegisters.contains("osccal0")) {
return cpuRegisters.at("osccal0");