kopia lustrzana https://github.com/AlexandreRouma/SDRPlusPlus
remove debugging fields from hydrasdr source
rodzic
b5d227fecf
commit
40808c60e4
|
@ -570,27 +570,6 @@ private:
|
|||
config.release(true);
|
||||
}
|
||||
}
|
||||
|
||||
SmGui::LeftLabel("Reg");
|
||||
SmGui::FillWidth();
|
||||
SmGui::InputText(CONCAT("##_badgesdr_reg_", _this->name), _this->regStr, 256);
|
||||
SmGui::LeftLabel("Value");
|
||||
SmGui::FillWidth();
|
||||
SmGui::InputText(CONCAT("##_badgesdr_val_", _this->name), _this->valStr, 256);
|
||||
SmGui::FillWidth();
|
||||
if (ImGui::Button(CONCAT("Read##_badgesdr_rd_", _this->name))) {
|
||||
if (_this->running) {
|
||||
uint8_t val;
|
||||
hydrasdr_r82x_read(_this->openDev, std::stoi(_this->regStr, NULL, 16), &val);
|
||||
sprintf(_this->valStr, "%02X", val);
|
||||
}
|
||||
}
|
||||
SmGui::FillWidth();
|
||||
if (ImGui::Button(CONCAT("Write##_badgesdr_wr_", _this->name))) {
|
||||
if (_this->running) {
|
||||
hydrasdr_r82x_write(_this->openDev, std::stoi(_this->regStr, NULL, 16), std::stoi(_this->valStr, NULL, 16));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
char valStr[256];
|
||||
|
|
Ładowanie…
Reference in New Issue