Skip to content

Commit

Permalink
Makecode url fix
Browse files Browse the repository at this point in the history
  • Loading branch information
r59q committed Oct 22, 2024
1 parent 36f3e50 commit 351ccb7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion features.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"lossGraph": true,
"makecode": true,
"liveGraphInputValues": true
}
}
2 changes: 1 addition & 1 deletion src/pages/model/ModelPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
const openMakeCodeInNewTab = () => {
window.open(
StaticConfiguration.makecodeFirmwareUrl,
'_blank', // <- This is what makes it open in a new tab.
'_blank',
);
};
</script>
Expand Down
7 changes: 6 additions & 1 deletion src/pages/model/tileview/ModelPageTileView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
<p class="text-sm">
You can create a hex file on <a
target="_blank"
href="https://makecode.microbit.org/S83658-20131-63602-68476"
href="{StaticConfiguration.makecodeFirmwareUrl}"
class="text-secondary">
MakeCode
</a>
Expand All @@ -106,3 +106,8 @@
</div>
{/if}
</main>

<!--
href="https://makecode.microbit.org/S83658-20131-63602-68476"
-->
1 change: 1 addition & 0 deletions src/script/microbit-interfacing/Microbits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ class Microbits {
* @param value The gesture name
*/
public static sendUARTGestureMessageToOutput(value: string) {
Logger.log("Microbits", "Sending " + value)
this.getOutput().sendMessage(`g${value}`);
}

Expand Down

0 comments on commit 351ccb7

Please sign in to comment.