@@ -1151,19 +1151,7 @@ void action_drag_overlay() {
1151
1151
}
1152
1152
1153
1153
void action_show_dlog_params () {
1154
- pushPage (PAGE_ID_DLOG_PARAMS);
1155
- }
1156
-
1157
- void action_dlog_voltage_toggle () {
1158
- dlog_record::g_guiParameters.logVoltage [getFoundWidgetAtDown ().cursor ] = !dlog_record::g_guiParameters.logVoltage [getFoundWidgetAtDown ().cursor ];
1159
- }
1160
-
1161
- void action_dlog_current_toggle () {
1162
- dlog_record::g_guiParameters.logCurrent [getFoundWidgetAtDown ().cursor ] = !dlog_record::g_guiParameters.logCurrent [getFoundWidgetAtDown ().cursor ];
1163
- }
1164
-
1165
- void action_dlog_power_toggle () {
1166
- dlog_record::g_guiParameters.logPower [getFoundWidgetAtDown ().cursor ] = !dlog_record::g_guiParameters.logPower [getFoundWidgetAtDown ().cursor ];
1154
+ pushPage (PAGE_ID_DLOG_PARAMS_OLD);
1167
1155
}
1168
1156
1169
1157
void action_dlog_edit_period () {
@@ -1178,10 +1166,6 @@ void action_dlog_edit_file_name() {
1178
1166
editValue (DATA_ID_DLOG_FILE_NAME);
1179
1167
}
1180
1168
1181
- void action_dlog_toggle () {
1182
- dlog_record::toggleStop ();
1183
- }
1184
-
1185
1169
void action_show_dlog_view () {
1186
1170
dlog_view::g_showLatest = true ;
1187
1171
if (!dlog_record::isExecuting ()) {
@@ -1190,64 +1174,10 @@ void action_show_dlog_view() {
1190
1174
showPage (PAGE_ID_DLOG_VIEW);
1191
1175
}
1192
1176
1193
- void action_dlog_start_recording () {
1194
- popPage ();
1195
-
1196
- char filePath[MAX_PATH_LENGTH + 50 ];
1197
-
1198
- if (isStringEmpty (dlog_record::g_guiParameters.filePath )) {
1199
- uint8_t year, month, day, hour, minute, second;
1200
- datetime::getDateTime (year, month, day, hour, minute, second);
1201
-
1202
- if (persist_conf::devConf.dateTimeFormat == datetime::FORMAT_DMY_24) {
1203
- snprintf (filePath, sizeof (filePath), " %s/%s%02d_%02d_%02d-%02d_%02d_%02d.dlog" ,
1204
- RECORDINGS_DIR,
1205
- dlog_record::g_guiParameters.filePath ,
1206
- (int )day, (int )month, (int )year,
1207
- (int )hour, (int )minute, (int )second);
1208
- } else if (persist_conf::devConf.dateTimeFormat == datetime::FORMAT_MDY_24) {
1209
- snprintf (filePath, sizeof (filePath), " %s/%s%02d_%02d_%02d-%02d_%02d_%02d.dlog" ,
1210
- RECORDINGS_DIR,
1211
- dlog_record::g_guiParameters.filePath ,
1212
- (int )month, (int )day, (int )year,
1213
- (int )hour, (int )minute, (int )second);
1214
- } else if (persist_conf::devConf.dateTimeFormat == datetime::FORMAT_DMY_12) {
1215
- bool am;
1216
- datetime::convertTime24to12 (hour, am);
1217
- snprintf (filePath, sizeof (filePath), " %s/%s%02d_%02d_%02d-%02d_%02d_%02d_%s.dlog" ,
1218
- RECORDINGS_DIR,
1219
- dlog_record::g_guiParameters.filePath ,
1220
- (int )day, (int )month, (int )year,
1221
- (int )hour, (int )minute, (int )second, am ? " AM" : " PM" );
1222
- } else if (persist_conf::devConf.dateTimeFormat == datetime::FORMAT_MDY_12) {
1223
- bool am;
1224
- datetime::convertTime24to12 (hour, am);
1225
- snprintf (filePath, sizeof (filePath), " %s/%s%02d_%02d_%02d-%02d_%02d_%02d_%s.dlog" ,
1226
- RECORDINGS_DIR,
1227
- dlog_record::g_guiParameters.filePath ,
1228
- (int )month, (int )day, (int )year,
1229
- (int )hour, (int )minute, (int )second, am ? " AM" : " PM" );
1230
- }
1231
- } else {
1232
- snprintf (filePath, sizeof (filePath), " %s/%s.dlog" , RECORDINGS_DIR, dlog_record::g_guiParameters.filePath );
1233
- }
1234
-
1235
- memcpy (&dlog_record::g_parameters, &dlog_record::g_guiParameters, sizeof (dlog_record::g_guiParameters));
1236
- strcpy (dlog_record::g_parameters.filePath , filePath);
1237
-
1238
- dlog_record::toggleStart ();
1239
- }
1240
-
1241
1177
void action_dlog_view_show_overlay_options () {
1242
1178
pushPage (PAGE_ID_DLOG_VIEW_OVERLAY_OPTIONS);
1243
1179
}
1244
1180
1245
- void action_dlog_value_toggle () {
1246
- dlog_view::Recording &recording = dlog_view::getRecording ();
1247
- int dlogValueIndex = getFoundWidgetAtDown ().cursor ;
1248
- recording.dlogValues [dlogValueIndex].isVisible = !recording.dlogValues [dlogValueIndex].isVisible ;
1249
- }
1250
-
1251
1181
void onSelectDlogViewLegendViewOption (uint16_t value) {
1252
1182
popPage ();
1253
1183
persist_conf::setDlogViewLegendViewOption ((persist_conf::DlogViewLegendViewOption)value);
0 commit comments