Make settings compile
This commit is contained in:
parent
b653e54917
commit
1c37bea54a
@ -1,6 +1,9 @@
|
|||||||
#include "pxt.h"
|
#include "pxt.h"
|
||||||
#include "ev3const.h"
|
#include "ev3const.h"
|
||||||
|
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
namespace output {
|
namespace output {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -17,6 +20,7 @@ Buffer createBuffer(int size) {
|
|||||||
namespace pxt {
|
namespace pxt {
|
||||||
|
|
||||||
void target_init() {
|
void target_init() {
|
||||||
|
mkdir(SETTINGSDIR, 0777);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
#define PXT_GC_THREAD_LIST 1
|
#define PXT_GC_THREAD_LIST 1
|
||||||
|
|
||||||
#define PXT_IN_ISR() false
|
#define PXT_IN_ISR() false
|
||||||
|
|
||||||
|
#define SETTINGSDIR "/mnt/ramdisk/settings"
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
"ultrasonic-sensor": "file:../ultrasonic-sensor",
|
"ultrasonic-sensor": "file:../ultrasonic-sensor",
|
||||||
"gyro-sensor": "file:../gyro-sensor",
|
"gyro-sensor": "file:../gyro-sensor",
|
||||||
"infrared-sensor": "file:../infrared-sensor",
|
"infrared-sensor": "file:../infrared-sensor",
|
||||||
"settings": "file:../settings---files"
|
"settings": "file:../settings"
|
||||||
},
|
},
|
||||||
"palette": [
|
"palette": [
|
||||||
"#ffffff",
|
"#ffffff",
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"additionalFilePath": "../../node_modules/pxt-common-packages/libs/settings---files"
|
|
||||||
}
|
|
@ -1,3 +1,4 @@
|
|||||||
{
|
{
|
||||||
"additionalFilePath": "../../node_modules/pxt-common-packages/libs/settings"
|
"name": "settings",
|
||||||
|
"additionalFilePath": "../../node_modules/pxt-common-packages/libs/settings---files"
|
||||||
}
|
}
|
||||||
|
@ -19,8 +19,7 @@
|
|||||||
"libs/ev3",
|
"libs/ev3",
|
||||||
"libs/storage",
|
"libs/storage",
|
||||||
"libs/broadcast",
|
"libs/broadcast",
|
||||||
"libs/settings",
|
"libs/settings"
|
||||||
"libs/settings---files"
|
|
||||||
],
|
],
|
||||||
"simulator": {
|
"simulator": {
|
||||||
"autoRun": true,
|
"autoRun": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user