Skip to content
Snippets Groups Projects
Commit 8bf02b2e authored by Florian Pose's avatar Florian Pose
Browse files

Fixed 64-bit register reading.

parent 6416d56d
No related branches found
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ void CommandRegRead::execute(MasterDevice &m, const StringVector &args) ...@@ -188,7 +188,7 @@ void CommandRegRead::execute(MasterDevice &m, const StringVector &args)
unsigned int uval = le32_to_cpup(data.data); unsigned int uval = le32_to_cpup(data.data);
cout << uval << " 0x" << hex << setw(8) << uval << endl; cout << uval << " 0x" << hex << setw(8) << uval << endl;
} else if (dataType->name == "uint64") { } else if (dataType->name == "uint64") {
long long unsigned int uval = le32_to_cpup(data.data); long long unsigned int uval = le64_to_cpup(data.data);
cout << uval << " 0x" << hex << setw(8) << uval << endl; cout << uval << " 0x" << hex << setw(8) << uval << endl;
} else { // raw } else { // raw
uint8_t *d = data.data; uint8_t *d = data.data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment