Fix NPReadX sing reg count > 1

This commit is contained in:
Norbert Richter 2022-03-10 13:02:26 +01:00
parent 2e191ef698
commit 1fc31ff39e
No known key found for this signature in database
GPG Key ID: 6628701A626FA674
1 changed files with 2 additions and 2 deletions

View File

@ -1847,9 +1847,9 @@ void NeopoolReadWriteResponse(uint16_t addr, uint16_t *data, uint16_t cnt, bool
ResponseAppend_P(PSTR("["));
for(uint16_t i=0; i<cnt; i++) {
ResponseAppend_P(PSTR("%s"), sdel);
ldata = (uint32_t)data[2*i];
ldata = (uint32_t)data[(fbits32+1)*i];
if (fbits32) {
ldata |= (uint32_t)data[2*i+1] << 16;
ldata |= (uint32_t)data[(fbits32+1)*i+1] << 16;
}
ResponseAppend_P(data_fmt, ldata);
*sdel = ',';