Skip to content

Commit

Permalink
Limit console logs for speed and add force trigger error message
Browse files Browse the repository at this point in the history
  • Loading branch information
SudharsanSukumar committed Nov 8, 2016
1 parent 0ca4255 commit a8640e9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/components/chart/chart.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1190,7 +1190,6 @@ export class SilverNeedleChart {
}

openMathModal() {
console.log(this.currentBufferArray);
if (this.currentBufferArray.length === 0) { return; }
let modal = this.modalCtrl.create(MathModalPage, {
chartComponent: this
Expand Down
10 changes: 8 additions & 2 deletions src/components/trigger/trigger.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,21 @@ export class TriggerComponent {
}

forceTrigger() {
this.activeDevice.instruments.trigger.forceTrigger([1]).subscribe(
/*this.activeDevice.instruments.trigger.forceTrigger([1]).subscribe(
(data) => {
console.log(data);
},
(err) => {
console.log(err);
},
() => { }
);
);*/
let toast = this.toastCtrl.create({
message: 'Force Trigger Not Yet Implemented',
showCloseButton: true,
position: 'bottom'
});
toast.present();
}

setupLevel() {
Expand Down
9 changes: 2 additions & 7 deletions src/pages/test-chart-ctrls/test-chart-ctrls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,9 @@ export class TestChartCtrlsPage {
];
}
singleCommand['trigger']['single'] = [[1]];
if (this.triggerComponent.edgeDirection === 'off') {
/*if (this.triggerComponent.edgeDirection === 'off') {
singleCommand['trigger']['forceTrigger'] = [[1]];
console.log(singleCommand);
}

console.log(singleCommand);
}*/

this.activeDevice.multiCommand(singleCommand).subscribe(
(data) => {
Expand Down Expand Up @@ -274,7 +271,6 @@ export class TestChartCtrlsPage {
}
this.activeDevice.instruments.osc.read(readArray).subscribe(
(data) => {
console.log(data);

this.readAttemptCount = 0;
let numSeries = [];
Expand Down Expand Up @@ -308,7 +304,6 @@ export class TestChartCtrlsPage {
}
}
}
console.log(this.chart1.currentBufferArray);
this.triggerStatus = 'Idle';
},
(err) => {
Expand Down
2 changes: 1 addition & 1 deletion src/services/settings/settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export class SettingsService {
public storageService: StorageService;
public defaultConsoleLog;
public logArguments;
public logLength: number = 100;
public logLength: number = 50;

constructor(_storageService: StorageService) {
console.log('settings service constructor');
Expand Down

0 comments on commit a8640e9

Please sign in to comment.