Removed init() member function from AVR GDB command packet classes

This commit is contained in:
Nav
2022-04-03 17:42:00 +01:00
parent 821f10ba79
commit 80d7c9588f
4 changed files with 10 additions and 19 deletions

View File

@@ -13,7 +13,9 @@ namespace Bloom::DebugServer::Gdb::AvrGdb::CommandPackets
using Exceptions::Exception;
void ReadMemory::init() {
ReadMemory::ReadMemory(const std::vector<unsigned char>& rawPacket)
: AbstractMemoryAccessPacket(rawPacket)
{
if (this->data.size() < 4) {
throw Exception("Invalid packet length");
}