diff options
Diffstat (limited to 'src/irecovery.c')
| -rw-r--r-- | src/irecovery.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/irecovery.c b/src/irecovery.c index 00db72d..7150f90 100644 --- a/src/irecovery.c +++ b/src/irecovery.c | |||
| @@ -119,7 +119,7 @@ void append_command_to_history(char* cmd) { | |||
| 119 | 119 | ||
| 120 | void init_shell(irecv_client_t client) { | 120 | void init_shell(irecv_client_t client) { |
| 121 | irecv_error_t error = 0; | 121 | irecv_error_t error = 0; |
| 122 | load_command_history(); | 122 | //load_command_history(); |
| 123 | irecv_set_sender(client, &send_callback); | 123 | irecv_set_sender(client, &send_callback); |
| 124 | irecv_set_receiver(client, &recv_callback); | 124 | irecv_set_receiver(client, &recv_callback); |
| 125 | while(!quit) { | 125 | while(!quit) { |
| @@ -136,7 +136,7 @@ void init_shell(irecv_client_t client) { | |||
| 136 | quit = 1; | 136 | quit = 1; |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | append_command_to_history(cmd); | 139 | //append_command_to_history(cmd); |
| 140 | free(cmd); | 140 | free(cmd); |
| 141 | } | 141 | } |
| 142 | } | 142 | } |
| @@ -160,10 +160,9 @@ int main(int argc, char** argv) { | |||
| 160 | int opt = 0; | 160 | int opt = 0; |
| 161 | int action = 0; | 161 | int action = 0; |
| 162 | char* argument = NULL; | 162 | char* argument = NULL; |
| 163 | char *uuid = NULL; | ||
| 164 | irecv_error_t error = 0; | 163 | irecv_error_t error = 0; |
| 165 | if(argc == 1) print_usage(); | 164 | if(argc == 1) print_usage(); |
| 166 | while ((opt = getopt(argc, argv, "vhru:sc:f:")) > 0) { | 165 | while ((opt = getopt(argc, argv, "vhrsc:f:")) > 0) { |
| 167 | switch (opt) { | 166 | switch (opt) { |
| 168 | case 'v': | 167 | case 'v': |
| 169 | verbose += 1; | 168 | verbose += 1; |
| @@ -173,10 +172,6 @@ int main(int argc, char** argv) { | |||
| 173 | print_usage(); | 172 | print_usage(); |
| 174 | break; | 173 | break; |
| 175 | 174 | ||
| 176 | case 'u': | ||
| 177 | uuid = optarg; | ||
| 178 | break; | ||
| 179 | |||
| 180 | case 'r': | 175 | case 'r': |
| 181 | action = kResetDevice; | 176 | action = kResetDevice; |
| 182 | break; | 177 | break; |
| @@ -205,7 +200,7 @@ int main(int argc, char** argv) { | |||
| 205 | for(i = 0; i <= 5; i++) { | 200 | for(i = 0; i <= 5; i++) { |
| 206 | debug("Attempting to connect... \n"); | 201 | debug("Attempting to connect... \n"); |
| 207 | 202 | ||
| 208 | if(irecv_open(&client, uuid) != IRECV_E_SUCCESS) sleep(1); | 203 | if(irecv_open(&client) != IRECV_E_SUCCESS) sleep(1); |
| 209 | else break; | 204 | else break; |
| 210 | 205 | ||
| 211 | if(i == 5) { | 206 | if(i == 5) { |
