TelenkovDmitry 10 meses atrás
pai
commit
fc30a30bd8
2 arquivos alterados com 8 adições e 2 exclusões
  1. 7 1
      fw/modules/log/log_api.c
  2. 1 1
      fw/modules/terminal/terminal_sbs.cpp

+ 7 - 1
fw/modules/log/log_api.c

@@ -31,7 +31,7 @@ void log_get_entry_count(void)
 }
 
 //
-int log_get_entry(uint32_t index, struct ringfs *fs, void *entry)
+int log_get_archive_entry(uint32_t index, struct ringfs *fs, void *entry)
 {
     archive_entry_t *ent = entry;
     
@@ -55,6 +55,12 @@ int log_get_entry(uint32_t index, struct ringfs *fs, void *entry)
     return 0;
 }
 
+//
+int log_get_log_entry(uint32_t index, struct ringfs *fs, void *entry)
+{
+    
+}
+
 //
 int mb_log_get_entry(uint8_t *buf, uint16_t entry_index)
 {

+ 1 - 1
fw/modules/terminal/terminal_sbs.cpp

@@ -99,7 +99,7 @@ int SbsTerminal::execute(int argc, const char * const *argv)
     // 
     if (strcmp(argv[0], "get") == 0) {
         archive_entry_t entry;
-        log_get_entry(atoi(argv[1]), &fs_archive, &entry);
+        log_get_archive_entry(atoi(argv[1]), &fs_archive, &entry);
         return 0;
     }
     // ---------------------------------------------------------------------- //