diff --git a/include/mouse_m908.h b/include/mouse_m908.h index 1e709cf..76a8a90 100644 --- a/include/mouse_m908.h +++ b/include/mouse_m908.h @@ -241,7 +241,7 @@ class mouse_m908{ /** * Read the settings and print the configuration in .ini format */ - int read_settings(); + int read_and_print_settings(); private: diff --git a/include/readers.cpp b/include/readers.cpp index 1215c4d..6cceeee 100644 --- a/include/readers.cpp +++ b/include/readers.cpp @@ -107,7 +107,7 @@ int mouse_m908::dump_settings(){ return 0; } -int mouse_m908::read_settings(){ +int mouse_m908::read_and_print_settings(){ //prepare data 1 int rows1 = sizeof(_data_read_1) / sizeof(_data_read_1[0]); @@ -530,10 +530,7 @@ int mouse_m908::read_settings(){ } else if( macro_bytes[i][j] == 0x00 ){ // padding - if( macro_bytes[i][j+1] == 0x00 ) - j+=2; - else - j++; + j++; } else{ std::cout << ";# unknown, please report as bug: "; diff --git a/mouse_m908.cpp b/mouse_m908.cpp index 2267473..9d60c1c 100644 --- a/mouse_m908.cpp +++ b/mouse_m908.cpp @@ -206,7 +206,7 @@ int main( int argc, char **argv ){ } // read settings - m.read_settings(); + m.read_and_print_settings(); m.close_mouse();