mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Scripting: Remove send_text if directory is created
This commit is contained in:
parent
e4d0484b75
commit
c53d42e665
@ -97,12 +97,11 @@ void AP_Scripting::init(void) {
|
||||
}
|
||||
|
||||
const char *dir_name = SCRIPTING_DIRECTORY;
|
||||
|
||||
if (!AP::FS().mkdir(dir_name)) {
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "Lua: created new directory (%s)", dir_name);
|
||||
} else if (errno != EEXIST) {
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "Lua: failed to create (%s)", dir_name);
|
||||
return;
|
||||
if (AP::FS().mkdir(dir_name)) {
|
||||
if (errno != EEXIST) {
|
||||
gcs().send_text(MAV_SEVERITY_INFO, "Lua: failed to create (%s)", dir_name);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!hal.scheduler->thread_create(FUNCTOR_BIND_MEMBER(&AP_Scripting::thread, void),
|
||||
|
Loading…
Reference in New Issue
Block a user