You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnErr(Error::new(&format!("Directory freertos_dir does not exist: {}",self.freertos_dir.to_str().unwrap())));
237
+
returnErr(Error::new(&format!(
238
+
"Directory freertos_dir does not exist: {}",
239
+
self.freertos_dir.to_str().unwrap()
240
+
)));
222
241
}
223
242
let port_dir = self.get_freertos_port_dir();
224
243
if !port_dir.is_dir(){
225
-
returnErr(Error::new(&format!("Directory freertos_port_dir does not exist: {}", port_dir.to_str().unwrap())));
244
+
returnErr(Error::new(&format!(
245
+
"Directory freertos_port_dir does not exist: {}",
246
+
port_dir.to_str().unwrap()
247
+
)));
226
248
}
227
249
228
250
let include_dir = self.freertos_include_dir();
229
251
if !include_dir.is_dir(){
230
-
returnErr(Error::new(&format!("Directory freertos_include_dir does not exist: {}", include_dir.to_str().unwrap())));
252
+
returnErr(Error::new(&format!(
253
+
"Directory freertos_include_dir does not exist: {}",
254
+
include_dir.to_str().unwrap()
255
+
)));
231
256
}
232
257
233
258
// The heap implementation
234
259
let heap_c = self.heap_c_file();
235
260
if !heap_c.is_file(){
236
-
returnErr(Error::new(&format!("File heap_?.c does not exist: {}", heap_c.to_str().unwrap())));
261
+
returnErr(Error::new(&format!(
262
+
"File heap_?.c does not exist: {}",
263
+
heap_c.to_str().unwrap()
264
+
)));
237
265
}
238
266
239
267
// Allows to find the FreeRTOSConfig.h
240
268
if !self.freertos_config_dir.is_dir(){
241
-
returnErr(Error::new(&format!("Directory freertos_config_dir does not exist: {}",self.freertos_config_dir.to_str().unwrap())));
269
+
returnErr(Error::new(&format!(
270
+
"Directory freertos_config_dir does not exist: {}",
271
+
self.freertos_config_dir.to_str().unwrap()
272
+
)));
242
273
}
243
274
// Make sure FreeRTOSConfig.h exists in freertos_config_dir
244
275
if !self.freertos_config_dir.join("FreeRTOSConfig.h").is_file(){
245
-
returnErr(Error::new(&format!("File FreeRTOSConfig.h does not exist in the freertos_config_dir directory: {}",self.freertos_config_dir.to_str().unwrap())));
276
+
returnErr(Error::new(&format!(
277
+
"File FreeRTOSConfig.h does not exist in the freertos_config_dir directory: {}",
278
+
self.freertos_config_dir.to_str().unwrap()
279
+
)));
246
280
}
247
281
248
282
// Add the freertos shim.c to support freertos-rust
249
283
let shim_c = self.shim_c_file();
250
284
if !shim_c.is_file(){
251
-
returnErr(Error::new(&format!("File freertos_shim '{}' does not exist, missing freertos-rust dependency?", shim_c.to_str().unwrap())));
285
+
returnErr(Error::new(&format!(
286
+
"File freertos_shim '{}' does not exist, missing freertos-rust dependency?",
0 commit comments