Ran into an issue when encoding where heatshrink_encoder_poll() returned 1026 bytes in poll_sz even though my DEF_BUFFER_SIZE was set to 1024. This led to handle_size() rejecting the request because size (aka poll_sz) was larger than io->size (aka DEF_BUFFER_SIZE).
Going to resubmit PR using cfg->buffer_size instead of DEF_BUFFER_SIZE. DEF_BUFFER_SIZE worked for me because I was not changing cfg->buffer_size from DEF_BUFFER_SIZE.
Ran into an issue when encoding where heatshrink_encoder_poll() returned 1026 bytes in poll_sz even though my DEF_BUFFER_SIZE was set to 1024. This led to handle_size() rejecting the request because size (aka poll_sz) was larger than io->size (aka DEF_BUFFER_SIZE).