Turned esp_value from an int to an unsigned int in an attempt to fix it.