8000 Remove a slow parameter validation block by neboskreb · Pull Request #138 · feilipu/Arduino_FreeRTOS_Library · GitHub
[go: up one dir, main page]

Skip to content

Conversation

neboskreb
8000 Copy link
Contributor

This is alternative solution to #136

The validation block which contained a division operation is removed. In case of invalid parameters, the allocation properly fails at line 515 and the failure is detected on the next line:

            pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes );

            if( pxNewQueue != NULL )
            {
                ...
            }
            else
            {
                traceQUEUE_CREATE_FAILED( ucQueueType );
                mtCOVERAGE_TEST_MARKER();
            }

@neboskreb
Copy link
Contributor Author

Decided to go with the other one, #137. Closing.

@neboskreb neboskreb closed this Sep 29, 2024
@neboskreb neboskreb deleted the bugfix/136-queue-remove-validation-block branch September 29, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0