diff --git a/xpp/mpptalk.c b/xpp/mpptalk.c index e49c3cd..9bab867 100644 --- a/xpp/mpptalk.c +++ b/xpp/mpptalk.c @@ -512,7 +512,7 @@ int mpp_send_seg(struct astribank_device *astribank, const uint8_t *data, uint16 assert(astribank != NULL); xtalk_dev = astribank->xtalk_dev; - if(!astribank->burn_state == BURN_STATE_STARTED) { + if(astribank->burn_state != BURN_STATE_STARTED) { ERR("Tried to send a segment while burn_state=%d\n", astribank->burn_state); return -EINVAL;