@@ -230,11 +230,6 @@ void melody_play(int index, bool interrupt_melody)
230
230
melody_notes = sizeof (melody_ble_fail )/sizeof (melody_ble_fail [0 ])/2 ;
231
231
melody_wholenote = (60000 * 4 ) / tempo_ble_fail ;
232
232
break ;
233
- case MELODY_NOKIA :
234
- melody = (int * )& melody_nokia ;
235
- melody_notes = sizeof (melody_nokia )/sizeof (melody_nokia [0 ])/2 ;
236
- melody_wholenote = (60000 * 4 ) / tempo_nokia ;
237
- break ;
238
233
case MELODY_BLE_SUCCESS :
239
234
melody = (int * )& melody_ble_success ;
240
235
melody_notes = sizeof (melody_ble_success )/sizeof (melody_ble_success [0 ])/2 ;
@@ -264,12 +259,12 @@ void melody_play(int index, bool interrupt_melody)
264
259
melody_wholenote = (60000 * 4 ) / tempo_voltage_low ;
265
260
melody_last_alert_index = MELODY_VOLTAGE_LOW ;
266
261
break ;
267
- case MELODY_ASC :
262
+ case MELODY_LOG_START :
268
263
melody = (int * )& melody_ascending ;
269
264
melody_notes = sizeof (melody_ascending )/sizeof (melody_ascending [0 ])/2 ;
270
265
melody_wholenote = (60000 * 4 ) / tempo_ascending ;
271
266
break ;
272
- case MELODY_DESC :
267
+ case MELODY_LOG_STOP :
273
268
melody = (int * )& melody_descending ;
274
269
melody_notes = sizeof (melody_descending )/sizeof (melody_descending [0 ])/2 ;
275
270
melody_wholenote = (60000 * 4 ) / tempo_descending ;
@@ -2059,7 +2054,7 @@ int log_file_stop()
2059
2054
int lfs_close_result = lfs_file_close (& lfs , & file );
2060
2055
NRF_LOG_INFO ("log_file_stop::lfs_file_close() result: %d" , lfs_close_result );
2061
2056
NRF_LOG_FLUSH ();
2062
- melody_play (MELODY_DESC , true); // Play log stop melody, interrupt
2057
+ melody_play (MELODY_LOG_STOP , true); // Play log stop melody, interrupt
2063
2058
return lfs_close_result ;
2064
2059
}
2065
2060
return -1 ;
@@ -2138,7 +2133,7 @@ void log_file_start()
2138
2133
NRF_LOG_INFO ("LOG_HEADER Bytes Written: %ld" , bytes_written );
2139
2134
NRF_LOG_FLUSH ();
2140
2135
2141
- melody_play (MELODY_ASC , false); // Play log started melody, do not interrupt
2136
+ melody_play (MELODY_LOG_START , false); // Play log started melody, do not interrupt
2142
2137
} else {
2143
2138
NRF_LOG_ERROR ("log_file_start::lfs_file_open: Failed with result: %d" , file_open_result );
2144
2139
NRF_LOG_FLUSH ();
0 commit comments