diff --git a/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp index 3a591f7c..e12c49d2 100644 --- a/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp +++ b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.cpp @@ -320,7 +320,7 @@ void EdbgAvr8Interface::setPdiParameters() { Logger::debug("Setting EEPROM_PAGE_SIZE AVR8 parameter"); this->setParameter( Avr8EdbgParameters::DEVICE_XMEGA_EEPROM_PAGE_SIZE, - static_cast(this->targetParameters.eepromPageSize.value()) + static_cast(this->targetParameters.eepromPageSize.value()) ); Logger::debug("Setting NVM_BASE AVR8 parameter"); @@ -566,7 +566,7 @@ void EdbgAvr8Interface::init() { if (this->configVariant == Avr8ConfigVariant::UPDI) { // Default UPDI clock to 1.8MHz this->setParameter(Avr8EdbgParameters::PDI_CLOCK_SPEED, static_cast(0x0708)); - this->setParameter(Avr8EdbgParameters::ENABLE_HIGH_VOLTAGE_UPDI, static_cast(0x00)); + this->setParameter(Avr8EdbgParameters::ENABLE_HIGH_VOLTAGE_UPDI, static_cast(0x00)); } if (this->configVariant == Avr8ConfigVariant::MEGAJTAG) { @@ -578,12 +578,12 @@ void EdbgAvr8Interface::init() { this->setParameter( Avr8EdbgParameters::CONFIG_VARIANT, - static_cast(this->configVariant) + static_cast(this->configVariant) ); this->setParameter( Avr8EdbgParameters::CONFIG_FUNCTION, - static_cast(this->configFunction) + static_cast(this->configFunction) ); this->setParameter( diff --git a/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.hpp b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.hpp index 3b3a9f16..3c86f3ed 100644 --- a/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.hpp +++ b/src/DebugToolDrivers/Protocols/CMSIS-DAP/VendorSpecific/EDBG/AVR/EdbgAvr8Interface.hpp @@ -240,7 +240,7 @@ namespace Bloom::DebugToolDrivers::Protocols::CmsisDap::Edbg::Avr * @param parameter * @param value */ - void setParameter(const Avr8EdbgParameter& parameter, unsigned char value) { + void setParameter(const Avr8EdbgParameter& parameter, std::uint8_t value) { this->setParameter(parameter, std::vector(1, value)); }