Skip to content

Commit

Permalink
Fix X[0-9]+Y[0-9]+ DPI format for the M711
Browse files Browse the repository at this point in the history
  • Loading branch information
dokutan committed Nov 27, 2021
1 parent 0da955e commit b843ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/m711/setters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() ){
Expand Down

0 comments on commit b843ca9

Please sign in to comment.