Fix X[0-9]+Y[0-9]+ DPI format for the M711

This commit is contained in:
dokutan 2021-11-27 21:20:18 +01:00
parent 0da955ef17
commit b843ca9087

View file

@ -165,7 +165,7 @@ int mouse_m711::set_dpi( rd_profile profile, int level, std::string dpi ){
dpi_x.erase(0, 1);
std::string dpi_y = std::regex_replace(dpi, std::regex("X[[:digit:]]+"), "");
dpi_x.erase(0, 1);
dpi_y.erase(0, 1);
if( _c_dpi_codes.find( std::stoi(dpi_x) ) != _c_dpi_codes.end()
&& _c_dpi_codes.find( std::stoi(dpi_y) ) != _c_dpi_codes.end() ){