Skip to content
Snippets Groups Projects
Commit e59702b0 authored by Pieter Donker's avatar Pieter Donker
Browse files

fixed bug

parent b1d42dd0
No related branches found
No related tags found
No related merge requests found
Pipeline #23421 passed
...@@ -313,7 +313,7 @@ bool FpgaMap::point(TermOutput& termout, const char cmd, const string addr, ...@@ -313,7 +313,7 @@ bool FpgaMap::point(TermOutput& termout, const char cmd, const string addr,
int format = pointMap->getFormat(addr); int format = pointMap->getFormat(addr);
int n_values = pointMap->getDataSize(addr); int n_values = pointMap->getDataSize(addr);
int n_nodes = pointMap->getNodesSize(addr); int n_nodes = pointMap->getNodesSize(addr);
int data_size_bytes = reg_format_size_in_bytes(format); int data_size_bytes = n_values * reg_format_size_in_bytes(format);
vector<int> nodes = get_all_nodes(); vector<int> nodes = get_all_nodes();
...@@ -337,7 +337,7 @@ bool FpgaMap::point(TermOutput& termout, const char cmd, const string addr, ...@@ -337,7 +337,7 @@ bool FpgaMap::point(TermOutput& termout, const char cmd, const string addr,
try { try {
uint didx = 0; uint didx = 0;
if (cmd == 'W') { if (cmd == 'W') {
didx = idx * n_values * data_size_bytes; didx = idx * data_size_bytes;
} }
if ((ret = node->exec_cmd(cmd, relative_addr, type, &data[didx], n_values, format))) { if ((ret = node->exec_cmd(cmd, relative_addr, type, &data[didx], n_values, format))) {
retcnt++; retcnt++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment