QuantumLeaps / qpc

QP/C Real-Time Embedded Framework/RTOS based on asynchronous, event-driven Active Objects (Actors) and Hierarchical State Machines
https://www.state-machine.com/products/qp
980 stars 250 forks source link

Possibly missing argument check #15

Closed tiagonj closed 3 years ago

tiagonj commented 3 years ago

In src/qf/qf_time.c function QF_noTimeEvtsActiveX() used to (circa version 5.6) have the following check

    /** @pre the tick rate must be in range */
    Q_REQUIRE_ID(200, tickRate < (uint_fast8_t)QF_MAX_TICK_RATE);

which no longer exists.

Was this removal intentional?

quantum-leaps commented 3 years ago

The precondition inside the function noTimeEvtsActiveX() will be restored in QP/C 6.9.4.