Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
REACT_APP_COMPILER_URL=https://compiler.sensebox.de
REACT_APP_COMPILER_URL=https://compile.sensebox.de
REACT_APP_BOARD=sensebox-mcu
REACT_APP_BLOCKLY_API=https://api.blockly.sensebox.de

Expand Down
8 changes: 7 additions & 1 deletion src/components/Blockly/generator/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,16 @@ import store from "../../../store";
var ota = store.getState().general.platform
? store.getState().general.platform
: null;
var board = store.getState().board.board
? store.getState().board.board
: null;
store.subscribe(() => {
ota = store.getState().general.platform
? store.getState().general.platform
: null;
board = store.getState().board.board
? store.getState().board.board
: null;
});

/**
Expand Down Expand Up @@ -218,7 +224,7 @@ Blockly["Arduino"].finish = function (code) {

let loopCode = "\nvoid loop() { \n" + loopCodeOnce + code + "\n}\n";
// only add OTA code if tablet mode is enabled
if (ota === true) {
if (ota === true && board !== "esp32") {
code =
devVariables +
"\n" +
Expand Down
2 changes: 1 addition & 1 deletion src/components/Workspace/Compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class Compile extends Component {
this.state.name
);
this.setState({
link: `blocklyconnect-app://sketch/${filename}/${this.state.id}`,
link: `blocklyconnect-app://sketch/${filename}/${this.state.id}/${this.props.selectedBoard}`,
});
this.setState({ appDialog: true });
} else {
Expand Down