really small polish
This commit is contained in:
parent
b1d5b13b04
commit
fe9a766ada
@ -76,7 +76,7 @@ public class DatabaseConnector implements DataPointListener {
|
||||
*/
|
||||
public void initialize(String url){
|
||||
// Full URL of the InfluxDB server
|
||||
String fullURL = null;
|
||||
String fullURL;
|
||||
try{
|
||||
if(urlForWrite == null){
|
||||
if(url == null){
|
||||
@ -118,7 +118,6 @@ public class DatabaseConnector implements DataPointListener {
|
||||
data += "}";
|
||||
Utility.pDebug(data);
|
||||
sendDataToDatabase(data);
|
||||
fullURL =null; // Reset the full URL
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
import ch.hevs.isi.MinecraftController;
|
||||
import ch.hevs.isi.core.BooleanDataPoint;
|
||||
import ch.hevs.isi.core.FloatDataPoint;
|
||||
import ch.hevs.isi.db.DatabaseConnector;
|
||||
|
||||
@ -25,7 +24,7 @@ public class Database {
|
||||
// Set the grid voltage to 750
|
||||
// and make a sawtooth from 750 to 850 and back to 750 in 30 steps
|
||||
for (float i = 0; i < 3; i += 0.1f) {
|
||||
System.out.println("");
|
||||
System.out.println();
|
||||
clock.setValue(i);
|
||||
gridVoltage.setValue(750 + (100*i)%100);
|
||||
}
|
||||
|
Reference in New Issue
Block a user