esp sa teraz pripaja na wifi

This commit is contained in:
Priec
2025-09-30 22:56:11 +02:00
parent c77f1f7696
commit 923e7e0a59
8 changed files with 57 additions and 7 deletions

View File

@@ -1,4 +1,17 @@
fn main() {
// load .env and pass SSID/PASSWORD to compiler
if let Ok(dotenv_path) = dotenvy::dotenv() {
// Only rebuild if .env changes
println!("cargo:rerun-if-changed={}", dotenv_path.display());
}
if let Ok(ssid) = std::env::var("SSID") {
println!("cargo:rustc-env=SSID={}", ssid);
}
if let Ok(password) = std::env::var("PASSWORD") {
println!("cargo:rustc-env=PASSWORD={}", password);
}
linker_be_nice();
// make sure linkall.x is the last linker script (otherwise might cause problems with flip-link)
println!("cargo:rustc-link-arg=-Tlinkall.x");