Skip to content

Commit

Permalink
fix(build): sdk path
Browse files Browse the repository at this point in the history
  • Loading branch information
andelf committed Aug 16, 2024
1 parent fe13c9b commit 5aef57b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hpm-data-gen/src/sysctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SYSCTL_RESOURCE_LINKABLE_START: u32 = 256;
static HPM_SDK_BASE: LazyLock<PathBuf> = LazyLock::new(|| {
std::env::var("HPM_SDK_BASE")
.map(PathBuf::from)
.unwrap_or_else(|_| std::env::current_dir().unwrap().join("../hpm_sdk"))
.unwrap_or_else(|_| std::env::current_dir().unwrap().join("./hpm_sdk"))
});

static HPM5300_SYSCTL: LazyLock<SysctlInfo> = LazyLock::new(|| {
Expand Down

0 comments on commit 5aef57b

Please sign in to comment.