We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab871d7 commit 6f35076Copy full SHA for 6f35076
comm.cpp
@@ -143,6 +143,7 @@ misc
143
*/
144
bool shift_down =false;;
145
int battery_level=11;
146
+bool patch_nc1020tw_nor=false;
147
148
149
comm.h
@@ -236,6 +236,7 @@ misc
236
const int int_inf=10*10000*10000;
237
extern bool shift_down;
238
extern int battery_level;
239
+extern bool patch_nc1020tw_nor;
240
/*
241
===================
242
common functions
nor.cpp
@@ -69,8 +69,10 @@ void LoadNor(){
69
else assert(false);
70
}
71
72
- void try_fix_dump();
73
- try_fix_dump();
+ if(patch_nc1020tw_nor){
+ void try_fix_dump();
74
+ try_fix_dump();
75
+ }
76
77
free(temp_buff);
78
fclose(file);
settings.cpp
@@ -64,6 +64,7 @@ void process_args(int argc, char *argv[])
64
{"log-all-dsp-io", no_argument, 0, 1},
65
{"battery-level", required_argument, 0, 1},
66
{"nc1020tw", no_argument, 0, 1},
67
+ {"patch-nc1020tw-nor", no_argument, 0, 1},
68
{"oops", no_argument, 0, 1},
{"quit-after-debug-next-n", no_argument, 0, 1},
{"rgb-scale", required_argument, 0, 1},
@@ -282,6 +283,9 @@ void process_args(int argc, char *argv[])
282
283
else if (strcmp(long_options[option_index].name,"rgb-scale")==0){
284
sscanf(optarg,"%lf,%lf,%lf",&r_scale,&g_scale,&b_scale);
285
286
+ else if (strcmp(long_options[option_index].name,"patch-nc1020tw-nor")==0){
287
+ patch_nc1020tw_nor = true;
288
289
else
290
{
291
printf("unknown option\n");
0 commit comments