From 26e78ef974d6f2abbffab06e6ebcff25c2f51434 Mon Sep 17 00:00:00 2001 From: Dan Wait <59032277+danjwait@users.noreply.github.com> Date: Thu, 24 Mar 2022 20:40:12 -0700 Subject: [PATCH] work around type issue with LinuxSerial (#1346) --- Drv/LinuxSerialDriver/LinuxSerialDriverComponentImpl.cpp | 2 +- Drv/LinuxSerialDriver/LinuxSerialDriverComponentImpl.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Drv/LinuxSerialDriver/LinuxSerialDriverComponentImpl.cpp b/Drv/LinuxSerialDriver/LinuxSerialDriverComponentImpl.cpp index 2ed9fadb8b..39e1ec55af 100644 --- a/Drv/LinuxSerialDriver/LinuxSerialDriverComponentImpl.cpp +++ b/Drv/LinuxSerialDriver/LinuxSerialDriverComponentImpl.cpp @@ -414,7 +414,7 @@ namespace Drv { } void LinuxSerialDriverComponentImpl :: - startReadThread(NATIVE_INT_TYPE priority, NATIVE_INT_TYPE stackSize, NATIVE_INT_TYPE cpuAffinity) { + startReadThread(NATIVE_UINT_TYPE priority, NATIVE_UINT_TYPE stackSize, NATIVE_UINT_TYPE cpuAffinity) { Os::TaskString task("SerReader"); Os::Task::TaskStatus stat = this->m_readTask.start(task, serialReadTaskEntry, this, priority, stackSize, cpuAffinity); diff --git a/Drv/LinuxSerialDriver/LinuxSerialDriverComponentImpl.hpp b/Drv/LinuxSerialDriver/LinuxSerialDriverComponentImpl.hpp index 2933b38692..dad0418ab8 100644 --- a/Drv/LinuxSerialDriver/LinuxSerialDriverComponentImpl.hpp +++ b/Drv/LinuxSerialDriver/LinuxSerialDriverComponentImpl.hpp @@ -71,7 +71,7 @@ namespace Drv { //! start the serial poll thread. //! buffSize is the max receive buffer size //! - void startReadThread(NATIVE_INT_TYPE priority = Os::Task::TASK_DEFAULT, NATIVE_INT_TYPE stackSize = Os::Task::TASK_DEFAULT, NATIVE_INT_TYPE cpuAffinity = Os::Task::TASK_DEFAULT); + void startReadThread(NATIVE_UINT_TYPE priority = Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE stackSize = Os::Task::TASK_DEFAULT, NATIVE_UINT_TYPE cpuAffinity = Os::Task::TASK_DEFAULT); //! Quit thread void quitReadThread();