qca/open-plc-utils

Function pev_cm_mnbc_sound setting wrong value for CNT field

vinicius-smartme opened this issue · 0 comments

The function pev_cm_mnbc_sound is setting the wrong indicate->MSVarField.CNT due post-decrement operator inside the while condition, what is causing the CNT field to be one below the expected value.

As a suggestion, just replace the while(sound--){} for do{ ...}while(sound--);