Rename read_settings
This commit is contained in:
parent
ede13663b9
commit
e878b820ef
3 changed files with 4 additions and 7 deletions
|
@ -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:
|
||||
|
||||
|
|
|
@ -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: ";
|
||||
|
|
|
@ -206,7 +206,7 @@ int main( int argc, char **argv ){
|
|||
}
|
||||
|
||||
// read settings
|
||||
m.read_settings();
|
||||
m.read_and_print_settings();
|
||||
|
||||
m.close_mouse();
|
||||
|
||||
|
|
Loading…
Reference in a new issue