Skip to content

Commit

Permalink
add protocol num
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarecrash committed Sep 4, 2023
1 parent 6d15d53 commit d067696
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PI_Serial/PI_Serial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ String PI_Serial::sendCommand(String command)
//----------------------------------------------------------------------
void PI_Serial::autoDetect() // function for autodetect the inverter type
{
PI_DEBUG_PRINTLN("------------- Start Autodetect -----------------");
PI_DEBUG_WEBLN("------------- Start Autodetect -----------------");
PI_DEBUG_PRINTLN("----------------- Start Autodetect -----------------");
PI_DEBUG_WEBLN("----------------- Start Autodetect -----------------");
for (size_t i = 0; i < 3; i++) // try 3 times to detect the inverter
{
PI_DEBUG_PRINT("Try Autodetect Protocol");
PI_DEBUG_WEB("Try Autodetect Protocol");
PI_DEBUG_PRINTLN("Try Autodetect Protocol");
PI_DEBUG_WEBLN("Try Autodetect Protocol");

startChar = "(";
serialIntfBaud = 2400;
Expand Down Expand Up @@ -162,8 +162,8 @@ void PI_Serial::autoDetect() // function for autodetect the inverter type
}
this->my_serialIntf->end();
}
PI_DEBUG_PRINTLN("------------- End Autodetect -----------------");
PI_DEBUG_WEBLN("------------- End Autodetect -----------------");
PI_DEBUG_PRINTLN("----------------- End Autodetect -----------------");
PI_DEBUG_WEBLN("----------------- End Autodetect -----------------");
}

bool PI_Serial::sendCustomCommand()
Expand Down

0 comments on commit d067696

Please sign in to comment.