From 31be096b94afc74e5c543f665b5fe6b7250ca018 Mon Sep 17 00:00:00 2001 From: Sem van der Hoeven Date: Mon, 19 Oct 2020 11:57:42 +0200 Subject: [PATCH] added small comments --- ClientApp/Utils/Client.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ClientApp/Utils/Client.cs b/ClientApp/Utils/Client.cs index cef78ab..21bcf83 100644 --- a/ClientApp/Utils/Client.cs +++ b/ClientApp/Utils/Client.cs @@ -150,11 +150,13 @@ namespace ClientApp.Utils Console.WriteLine("Set resistance identifier"); if (this.handler == null) { + // send that the operation was not successful if the handler is null Console.WriteLine("handler is null"); sendMessage(DataParser.getSetResistanceResponseJson(false)); } else { + // set the resistance in the vr scene and send that it was successful float resistance = DataParser.getResistanceFromJson(payloadbytes); this.handler.setResistance(resistance); engineConnection.BikeResistance = resistance;