Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
mobizt committed Aug 9, 2023
1 parent a2490a0 commit a6ba49c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/ESP_Mail_Const.h
Original file line number Diff line number Diff line change
Expand Up @@ -552,8 +552,8 @@ enum esp_mail_debug_level
{
esp_mail_debug_level_none = 0,
esp_mail_debug_level_basic,
esp_mail_debug_level_maintener = 0xfff,
esp_mail_debug_level_developer = esp_mail_debug_level_maintener + 1
esp_mail_debug_level_maintainer = 0xfff,
esp_mail_debug_level_developer = esp_mail_debug_level_maintainer + 1
};

/* The content transfer encoding enum */
Expand Down
4 changes: 2 additions & 2 deletions src/ESP_Mail_IMAP.h
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,7 @@ size_t ESP_Mail_Client::imapSend(IMAPSession *imap, PGM_P data, bool newline)

int toSend = newline ? s.length() + 2 : s.length();

if (imap->_debug && imap->_debugLevel > esp_mail_debug_level_maintener && !imap->_customCmdResCallback)
if (imap->_debug && imap->_debugLevel > esp_mail_debug_level_maintainer && !imap->_customCmdResCallback)
esp_mail_debug_print(s.c_str(), newline);

sent = newline ? imap->client.println(s.c_str()) : imap->client.print(s.c_str());
Expand Down Expand Up @@ -5076,7 +5076,7 @@ void IMAPSession::debug(int level)
{
if (level > esp_mail_debug_level_none)
{
if (level > esp_mail_debug_level_basic && level < esp_mail_debug_level_maintener)
if (level > esp_mail_debug_level_basic && level < esp_mail_debug_level_maintainer)
level = esp_mail_debug_level_basic;
_debugLevel = level;
_debug = true;
Expand Down
4 changes: 2 additions & 2 deletions src/ESP_Mail_SMTP.h
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ size_t ESP_Mail_Client::smtpSend(SMTPSession *smtp, PGM_P data, bool newline)
int toSend = newline ? s.length() + 2 : s.length();

#if !defined(SILENT_MODE)
if (!smtp->_customCmdResCallback && smtp->_debugLevel > esp_mail_debug_level_maintener)
if (!smtp->_customCmdResCallback && smtp->_debugLevel > esp_mail_debug_level_maintainer)
esp_mail_debug_print(s.c_str(), newline);
#endif

Expand Down Expand Up @@ -3508,7 +3508,7 @@ void SMTPSession::debug(int level)
{
if (level > esp_mail_debug_level_none)
{
if (level > esp_mail_debug_level_basic && level < esp_mail_debug_level_maintener)
if (level > esp_mail_debug_level_basic && level < esp_mail_debug_level_maintainer)
level = esp_mail_debug_level_basic;
_debugLevel = level;
_debug = true;
Expand Down

0 comments on commit a6ba49c

Please sign in to comment.