Skip to content

Commit

Permalink
in standlaone mode, disable studio integration unless --studioHttpPor…
Browse files Browse the repository at this point in the history
…t is specified (#873)
  • Loading branch information
Jing T authored Dec 21, 2022
1 parent fedcdb4 commit 27b6c2a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src-electron/ide-integration/studio-rest-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,11 @@ function httpPostComponentUpdate(
function initIdeIntegration(db: dbTypes.DbType, studioPort: number) {
studioHttpPort = studioPort

ucComponentStateReportId = setInterval(() => {
sendUcComponentStateReport(db)
}, UC_COMPONENT_STATE_REPORTING_INTERVAL_ID)
if (studioPort) {
ucComponentStateReportId = setInterval(() => {
sendUcComponentStateReport(db)
}, UC_COMPONENT_STATE_REPORTING_INTERVAL_ID)
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src-electron/util/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function processCommandLineArguments(argv: string[]) {
.option('studioHttpPort', {
desc: "Port used for integration with Silicon Labs Simplicity Studio's internal HTTP server",
type: 'number',
default: 9000,
default: -1,
})
.option('zapFile', {
desc: 'input .zap file to read in. You can also specify them without an option, directly.',
Expand Down

0 comments on commit 27b6c2a

Please sign in to comment.