Skip to content

Conversation

@LeStarch
Copy link
Collaborator

@LeStarch LeStarch commented Jul 2, 2025

Related Issue(s)
Has Unit Tests (y/n)
Documentation Included (y/n)

Change Description

Linux should not default to stubbed drivers. This was a regression.

@LeStarch LeStarch requested a review from chuynh4duarte July 2, 2025 22:38
Copy link
Contributor

@chuynh4duarte chuynh4duarte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed status return "Failed to open GPIO pin: 7" in fprime-workshop-led-blinker

@LeStarch LeStarch force-pushed the LeStarch-patch-1 branch 2 times, most recently from 9b3bd87 to cade0a7 Compare July 18, 2025 20:13
// write data
stat = static_cast<int>(write(this->m_fd, serBuffer.getData(), static_cast<size_t>(serBuffer.getSize())));
if (stat == -1) {
ssize_t status_write = write(this->m_fd, serBuffer.getData(), static_cast<size_t>(serBuffer.getSize()));

Check notice

Code scanning / CodeQL

Use of basic integral type Note

status_write uses the basic integral type long rather than a typedef with size and signedness.
stat = static_cast<int>(read(this->m_fd, serBuffer.getData(), serBuffer.getSize()));
if (stat == -1) {
FW_ASSERT_NO_OVERFLOW(serBuffer.getSize(), size_t);
ssize_t status_read = read(this->m_fd, serBuffer.getData(), static_cast<size_t>(serBuffer.getSize()));

Check notice

Code scanning / CodeQL

Use of basic integral type Note

status_read uses the basic integral type long rather than a typedef with size and signedness.
@kevin-f-ortega kevin-f-ortega merged commit 6f475a5 into devel Jul 18, 2025
53 checks passed
@kevin-f-ortega kevin-f-ortega deleted the LeStarch-patch-1 branch July 18, 2025 20:36
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.

4 participants