Skip to content

Commit

Permalink
fix calliopemini product id
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 25, 2023
1 parent a2521c5 commit f6b308f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions calliopemini.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
namespace jacdac {
export const TARGET_PRODUCT_ID = 0x3347a2d2
}
2 changes: 1 addition & 1 deletion mbcompat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function handleStatusEvent(event: jacdac.StatusEvent) {
function initPlatform() {
// don't use any jacdac static - it isn't initialized here yet in sim (pxt bug)
jacdac.onPlatformStart = function () {
jacdac.productIdentifier = 0x32f6253d
jacdac.productIdentifier = jacdac.TARGET_PRODUCT_ID
jacdac.bus.on(jacdac.STATUS_EVENT, handleStatusEvent)
if (settings.exists(jacdac.JACDAC_PROXY_SETTING)) {
const reset = () => control.reset()
Expand Down
3 changes: 3 additions & 0 deletions microbit.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
namespace jacdac {
export const TARGET_PRODUCT_ID = 0x32f6253d
}
4 changes: 4 additions & 0 deletions pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
"JacdacBLE.h",
"JacdacBLE.cpp",
"jdble.cpp",
"microbit.ts",
"calliopemini.ts",
"mbcompat.ts",
"commands.ts",
"config.ts",
Expand Down Expand Up @@ -70,6 +72,8 @@
"testDependencies": {},
"fileDependencies": {
"mbcompat.ts": "target:microbit || target:calliopemini",
"microbit.ts": "target:microbit",
"calliopemini.ts": "target:calliopemini",
"nonmaker.ts": "!target:maker",
"maker.ts": "target:maker",
"test.microbit.ts": "target:microbit || target:calliopemini",
Expand Down

0 comments on commit f6b308f

Please sign in to comment.