Skip to content

Commit

Permalink
fix stack used message
Browse files Browse the repository at this point in the history
  • Loading branch information
gojimmypi committed Oct 11, 2024
1 parent 475be37 commit 7a3e6b1
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,9 @@ WOLFSSL_ESP_TASK tls_smp_server_task(void *args)
#endif
#endif
#ifdef WOLFSSL_EXAMPLE_VERBOSITY
ESP_LOGI(TAG, "Initial stack used: %d\n", TLS_SMP_SERVER_TASK_BYTES
#endif - uxTaskGetStackHighWaterMark(NULL) );
ESP_LOGI(TAG, "Initial stack used: %d\n",
TLS_SMP_SERVER_TASK_BYTES - uxTaskGetStackHighWaterMark(NULL) );
#endif
ESP_LOGI(TAG, "accept clients...");
/* Continue to accept clients until shutdown is issued */
while (!shutdown) {
Expand Down Expand Up @@ -385,8 +386,8 @@ WOLFSSL_ESP_TASK tls_smp_server_task(void *args)
wolfSSL_free(ssl); /* Free the wolfSSL object */
close(connd); /* Close the connection to the client */
#ifdef WOLFSSL_EXAMPLE_VERBOSITY
ESP_LOGI(TAG, "Stack used: %d\n", TLS_SMP_SERVER_TASK_BYTES
- uxTaskGetStackHighWaterMark(NULL) );
ESP_LOGI(TAG, "Stack used: %d\n",
TLS_SMP_SERVER_TASK_BYTES - uxTaskGetStackHighWaterMark(NULL));
#endif
} /* !shutdown */
/* Cleanup and return */
Expand Down

0 comments on commit 7a3e6b1

Please sign in to comment.