Skip to content

Commit

Permalink
Just stuff - temp fix for loglevel
Browse files Browse the repository at this point in the history
  • Loading branch information
jrickard committed Sep 21, 2014
1 parent 2c32686 commit 829adce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions GEVCU.ino
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ void setup() {
uint8_t loglevel;
sysPrefs->read(EESYS_LOG_LEVEL, &loglevel);
Logger::setLoglevel((Logger::LogLevel)loglevel);
Logger::setLoglevel((Logger::LogLevel)1);
sys_early_setup();
tickHandler = TickHandler::getInstance();
canHandlerEV = CanHandler::getInstanceEV();
Expand Down
8 changes: 4 additions & 4 deletions MotorController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,19 +125,19 @@ void MotorController::handleTick() {
dcVoltage--;
if (torqueActual < -500)
{
torqueActual=20;
torqueActual=600;
}
else
{
torqueActual=-650;
}
if (dcCurrent < 0)
{
dcCurrent=120;
dcCurrent=1200;
}
else
{
dcCurrent=-65;
dcCurrent=-650;
}
if (temperatureInverter < config->coolOn*10)
{
Expand All @@ -150,7 +150,7 @@ void MotorController::handleTick() {

if (throttleRequested < 500)
{
throttleRequested=500;
throttleRequested=2000;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion ichip_2128.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ void ICHIPWIFI::processParameterChange(char *key) {

} else if (!strcmp(key, Constants::logLevel)) {
extern PrefHandler *sysPrefs;
uint8_t loglevel = atol(value);
uint8_t loglevel = atoi(value);
Logger::setLoglevel((Logger::LogLevel)loglevel);
sysPrefs->write(EESYS_LOG_LEVEL, loglevel);
} else {
Expand Down

0 comments on commit 829adce

Please sign in to comment.