Skip to content

Commit 83efa32

Browse files
committed
applib: Add Moddable debug flag and bump SDK
Signed-off-by: Joshua Jun <lets@throw.rocks>
1 parent 56eeca9 commit 83efa32

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

src/fw/applib/moddable/moddable.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
//! @see ModdableCreationRecord
1212
#define kModdableCreationFlagLogInstrumentation (1 << 0)
1313

14+
//! Flag to enable XS debugging using xsbug.
15+
//! Should be used in combination with pebble build --debug
16+
//! @see ModdableCreationRecord
17+
#define kModdableCreationFlagDebug (1 << 1)
18+
1419
//! Configuration record for creating a Moddable XS virtual machine.
1520
//! Used with moddable_createMachine() to customize the JS runtime.
1621
//! Set recordSize to sizeof(ModdableCreationRecord) for version compatibility.

src/fw/process_management/pebble_process_info.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,10 @@ typedef enum {
165165
// sdk.major:0x5 .minor:0x61 -- Add speaker_is_muted() for system-wide speaker mute query (rev 100)
166166
// sdk.major:0x5 .minor:0x62 -- Add backlight_service_subscribe/unsubscribe for backlight on/off events (rev 101)
167167
// sdk.major:0x5 .minor:0x63 -- Export launch_button() (rev 102)
168+
// sdk.major:0x5 .minor:0x64 -- Add kModdableCreationFlagDebug (rev 103)
168169

169170
#define PROCESS_INFO_CURRENT_SDK_VERSION_MAJOR 0x5
170-
#define PROCESS_INFO_CURRENT_SDK_VERSION_MINOR 0x63
171+
#define PROCESS_INFO_CURRENT_SDK_VERSION_MINOR 0x64
171172

172173
// The first SDK to ship with 2.x APIs
173174
#define PROCESS_INFO_FIRST_2X_SDK_VERSION_MAJOR 0x4

tools/generate_native_sdk/exported_symbols.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"You should also make sure you are obeying our API design guidelines:",
55
"https://pebbletechnology.atlassian.net/wiki/display/DEV/SDK+API+Design+Guidelines"
66
],
7-
"revision" : "102",
7+
"revision" : "103",
88
"version" : "2.0",
99
"files": [
1010
"fw/drivers/ambient_light.h",
@@ -1567,6 +1567,10 @@
15671567
"type": "define",
15681568
"name": "kModdableCreationFlagLogInstrumentation",
15691569
"addedRevision": "92"
1570+
}, {
1571+
"type": "define",
1572+
"name": "kModdableCreationFlagDebug",
1573+
"addedRevision": "103"
15701574
}, {
15711575
"type": "type",
15721576
"name": "ModdableCreationRecord",

0 commit comments

Comments
 (0)