Skip to content

Commit

Permalink
Fix bookworm compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Dec 23, 2023
1 parent 474ad44 commit 452b37c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/ccd/ccd_simulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,9 @@ bool CCDSim::initProperties()
// Resolution
for (uint8_t i = 0; i < Resolutions.size(); i++)
{
auto label = (std::ostringstream{} << Resolutions[i].first << " x " << Resolutions[i].second).str();
ResolutionSP[i].fill(label.c_str(), label.c_str(), i == 0 ? ISS_ON : ISS_OFF);
std::ostringstream ss;
ss << Resolutions[i].first << " x " << Resolutions[i].second;
ResolutionSP[i].fill(ss.str().c_str(), ss.str().c_str(), i == 0 ? ISS_ON : ISS_OFF);
}
ResolutionSP.fill(getDeviceName(), "CCD_RESOLUTION", "Resolution", SIMULATOR_TAB, IP_RW, ISR_1OFMANY, 60, IPS_IDLE);

Expand Down

0 comments on commit 452b37c

Please sign in to comment.