Electrical: fix typo

This commit is contained in:
Sidi Liang 2020-05-11 22:08:41 +08:00
parent 50f9c2c84f
commit 283e4d6652
No known key found for this signature in database
GPG Key ID: 79F0A6B20B72F42F
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#//Followme EV electrical system by Sidi Liang
#//Contact: sidi.liang@gmail.com
var kWh2kWs = func(kWh){
return kWh * 3600;
}
@ -143,7 +143,7 @@ var Circuit = {
}
}, #//Volt
calculateTotalParalleCurrent: func(){
calculateTotalParallelCurrent: func(){
var total = 0;
foreach(elem; me.parallelConnection){
if(elem.isSwitch()){
@ -186,7 +186,7 @@ var Circuit = {
}
if(me.debugMode == 2) print("Series Current Calculated");
me.calculateTotalParalleCurrent();
me.calculateTotalParallelCurrent();
if(me.debugMode == 2) print("Parallel Current Calculated");
foreach(elem; me.parallelConnection){