Skip to content
Snippets Groups Projects
Commit 2f8c18f2 authored by kasperlauge's avatar kasperlauge
Browse files

Removed debugging stuff

parent 4f6960d5
No related branches found
No related tags found
1 merge request!1Swagger improvements
......@@ -29,7 +29,6 @@ export class LedPresentationComponent implements OnInit {
}
onValueChange(checked: boolean, id: number) {
console.log(checked);
if (!checked) {
this.setOff(id);
} else {
......@@ -44,13 +43,11 @@ export class LedPresentationComponent implements OnInit {
setOff(id: number) {
this.sensorService.setLED(id, false).pipe(takeUntil(this.unsubscribe)).subscribe(result => {
console.log(result);
this.leds.find(led => led.id === result.id)[0] = result;
});
}
setOn(id: number) {
this.sensorService.setLED(id, true).pipe(takeUntil(this.unsubscribe)).subscribe(result => {
console.log(result);
this.leds.find(led => led.id === result.id)[0] = result;
});
}
......
......@@ -26,7 +26,6 @@ export function setLED(req: Request, res: Response, next: NextFunction) {
setLEDservice(id, newValue);
const value = getLEDservice(id);
console.log(value);
res.status(201).json({id,value});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment