removed take

This commit is contained in:
Kim 2023-05-25 14:50:20 +02:00
parent 92721376a6
commit b5fbca3f8d
2 changed files with 3 additions and 3 deletions

View File

@ -156,7 +156,7 @@ public class Controller : ControllerBase
var localCommand = $"/opt/innovenergy/scripts/upload-bms-firmware {batteryTtyName} {batteryId} /opt/innovenergy/bms-firmware/{FirmwareVersion}.bin";
var remoteUpdateCommandResult = Db.ExecuteBufferedAsyncCommandOnIp(installationIp, localCommand);
// Console.WriteLine(remoteUpdateCommandResult); //Todo replace me with checking if it worked...
// Console.WriteLine(remoteUpdateCommandResult);
}
return "Battery update is successfully initiated! You can close this page now.";
}

View File

@ -60,7 +60,7 @@ public static partial class Db
do {
await UpdateInstallationsAndDetailsFromVrm(0);
}
while (false) ; //Todo change to true before
while (true) ;
}
[UnconditionalSuppressMessage("Trimming", "IL2026:Members annotated with 'RequiresUnreferencedCodeAttribute' require dynamic access otherwise can break functionality when trimming application code", Justification = "<Pending>")]
@ -73,7 +73,7 @@ public static partial class Db
var installations = await user.GetInstallations();
// var returnDictionary = new Dictionary<VrmInstallation, InstallationDetails>();
foreach (var installation in installations.Skip(404).Take(3)) //TODO REMOVE TAKE
foreach (var installation in installations)
{
Console.WriteLine(installation.Name);
var details = await GetInstallationDetails(installation);