Corrected typo in OSCCAL register extraction
This commit is contained in:
@@ -586,8 +586,8 @@ std::optional<Register> TargetDescriptionFile::getOscillatorCalibrationRegister(
|
|||||||
if (cpuRegisterGroup.has_value()) {
|
if (cpuRegisterGroup.has_value()) {
|
||||||
auto& cpuRegisters = cpuRegisterGroup->registersMappedByName;
|
auto& cpuRegisters = cpuRegisterGroup->registersMappedByName;
|
||||||
|
|
||||||
if (cpuRegisters.contains("oscall")) {
|
if (cpuRegisters.contains("osccal")) {
|
||||||
return cpuRegisters.at("oscall");
|
return cpuRegisters.at("osccal");
|
||||||
|
|
||||||
} else if (cpuRegisters.contains("osccal0")) {
|
} else if (cpuRegisters.contains("osccal0")) {
|
||||||
return cpuRegisters.at("osccal0");
|
return cpuRegisters.at("osccal0");
|
||||||
|
|||||||
Reference in New Issue
Block a user