Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,7 @@ omiGlass/.expo
/backend/logs/
app/.fvm/
app/android/.kotlin/

# Miscellaneous
*tags
*cscope.out
9 changes: 9 additions & 0 deletions omi/firmware/devkit/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,13 @@ config OMI_ENABLE_HAPTIC
"Enable the haptic support."
default n

config OMI_ENABLE_AUDIO_CHUNKING
bool "Enable Audio Chunking System"
depends on OMI_ENABLE_OFFLINE_STORAGE
help
"Enable the time-based audio chunking system for better file management.
Creates 5-minute audio chunks with unique filenames across reboots.
Disable to use legacy numbered file system (a01.txt)."
default y

endmenu
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,4 @@ CONFIG_OMI_ENABLE_SPEAKER=y
CONFIG_OMI_ENABLE_BATTERY=y
CONFIG_OMI_ENABLE_USB=y
CONFIG_OMI_ENABLE_HAPTIC=y
CONFIG_OMI_ENABLE_AUDIO_CHUNKING=n
7 changes: 7 additions & 0 deletions omi/firmware/devkit/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,12 +312,19 @@ int main(void)
k_msleep(1000);
set_led_blue(false);

// Mark boot as complete to enable chunking
set_system_boot_complete();

// Main loop
LOG_PRINTK("\n");
LOG_INF("Entering main loop...\n");

while (1) {
set_led_state();

//Check chunk rotation timing every 500ms
check_chunk_rotation_timing();

k_msleep(500);
}

Expand Down
Loading