CE change environment variables syntax, sdutil Add help command
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 3m26s
Build documentation / build-and-deploy (push) Successful in 3m14s

This commit is contained in:
2026-03-27 22:31:32 +01:00
parent 2d7f019844
commit 69f063198a
3 changed files with 19 additions and 9 deletions

View File

@@ -182,6 +182,12 @@ void app_main (void) {
char devnamebuf[64];
memset (devnamebuf, 0, sizeof (devnamebuf));
if (env_get (process_get_pgid (), "help", (void*)commandbuf, sizeof (commandbuf)) == ST_OK) {
mprintf ("sdutil -C command -dev device_key\n");
mprintf ("commands: part_dos, list_part_dos, format_fat32, format_fat16\n");
return;
}
if (env_get (process_get_pgid (), "C", (void*)commandbuf, sizeof (commandbuf)) != ST_OK) {
mprintf ("ERROR C=???. No command provided\n");
return;