This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#add_definitions(-DTRANSLATION_DOMAIN=\"kdevembedded\") | |
project(EMBEDDED C CXX) | |
set(ARDUINO_SDK_VERSION "168") | |
set(ARDUINO_SDK_VERSION_NAME "1.6.8") | |
set(ARDUINO_SDK_MIN_VERSION_NAME "1.6.8") | |
add_definitions(-DARDUINO_SDK_VERSION="${ARDUINO_SDK_VERSION}") | |
add_definitions(-DARDUINO_SDK_VERSION_NAME="${ARDUINO_SDK_VERSION_NAME}") | |
add_definitions(-DARDUINO_SDK_MIN_VERSION_NAME="${ARDUINO_SDK_MIN_VERSION_NAME}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 | |
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd"> | |
<kcfgfile arg="true"/> | |
<group name="Board confugiration"> | |
<entry name="board_name" type="String"> | |
<label>Board name :</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[General] | |
BaseClasses=public QObject | |
BaseClasses=public KDevelop::IPlugin,public KDevelop::IBasicVersionControl | |
BaseClasses=object | |
Name=Embedded | |
Comment=An embedded system template potato | |
Category=Embedded/C++ | |
Type=Project | |
Files=Header |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess as sub | |
import sys, time, fcntl, os | |
import threading | |
class Potato(threading.Thread): | |
def __init__(self,cmd,be,cwd='.'): | |
threading.Thread.__init__(self) | |
self.cmd = cmd # command | |
self.be = be # name | |
self.cwd = cwd # local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/atcore.cpp b/src/atcore.cpp | |
index 3d47405..712de87 100644 | |
--- a/src/atcore.cpp | |
+++ b/src/atcore.cpp | |
@@ -53,6 +53,7 @@ AtCore::AtCore(QObject *parent) : | |
QObject(parent), | |
d(new AtCorePrivate) | |
{ | |
+ qRegisterMetaType<PrinterState>("PrinterState"); | |
setState(DISCONNECTED); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 5 "QThread" received signal SIGSEGV, Segmentation fault. | |
[Switching to Thread 0x7fffe13c4700 (LWP 3590)] | |
0x00007ffff61f5292 in QIODevice::read(char*, long long) () | |
from /usr/lib/libQt5Core.so.5 | |
(gdb) where | |
#0 0x00007ffff61f5292 in QIODevice::read(char*, long long) () | |
from /usr/lib/libQt5Core.so.5 | |
#1 0x00007ffff6205cae in ?? () from /usr/lib/libQt5Core.so.5 | |
#2 0x00007ffff62094e3 in QTextStream::readLineInto(QString*, long long) () | |
from /usr/lib/libQt5Core.so.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 5 "QThread" received signal SIGSEGV, Segmentation fault. | |
[Switching to Thread 0x7fffe13c4700 (LWP 5853)] | |
0x00007ffff61f5295 in QIODevice::read(char*, long long) () from /usr/lib/libQt5Core.so.5 | |
(gdb) where | |
#0 0x00007ffff61f5295 in QIODevice::read(char*, long long) () from /usr/lib/libQt5Core.so.5 | |
#1 0x00007ffff6205e7f in ?? () from /usr/lib/libQt5Core.so.5 | |
#2 0x00007ffff62094e3 in QTextStream::readLineInto(QString*, long long) () | |
from /usr/lib/libQt5Core.so.5 | |
#3 0x00007ffff62097ce in QTextStream::readLine(long long) () from /usr/lib/libQt5Core.so.5 | |
#4 0x00007ffff7bc8b2c in PrintThread::nextLine (this=0xc45080) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 5 "QThread" hit Breakpoint 1, PrintThread::commandReady (this=0xab6650) | |
at /home/patrick/git/patrick/atcore/src/printThread.cpp:47 | |
47 qDebug() << "atEnd"; | |
(gdb) c | |
Continuing. | |
atEnd | |
Command Ready! | |
Thread 5 "QThread" hit Breakpoint 1, PrintThread::commandReady (this=0xab6650) | |
at /home/patrick/git/patrick/atcore/src/printThread.cpp:47 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[17:44:09:816] Attempting to locate Serial Ports | |
[17:44:09:847] Found 2 Ports | |
[17:44:11:894] Serial connected | |
[17:44:11:895] No plugin loaded ! | |
[17:44:11:895] Requesting Firmware... | |
[17:44:11:896]> M115\n\r | |
[17:44:11:899]< T:34.5:0 B:46.4 | |
[17:44:11:900]< 58 E:0 B:45.3 | |
[17:44:11:900]< T:34.58 E:0 B:45.3 | |
[17:44:11:900]< T:34.53 E:0 B:45.6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thread 1 "AtCoreTest" received signal SIGABRT, Aborted. | |
0x00007ffff542b04f in raise () from /usr/lib/libc.so.6 | |
(gdb) where | |
#0 0x00007ffff542b04f in raise () at /usr/lib/libc.so.6 | |
#1 0x00007ffff542c47a in abort () at /usr/lib/libc.so.6 | |
#2 0x00007ffff60cce21 in () at /usr/lib/libQt5Core.so.5 | |
#3 0x00007ffff60c8441 in () at /usr/lib/libQt5Core.so.5 | |
#4 0x00007fffcccd9b17 in QList<QString>::operator[](int) (this=0x7fffffffd260, i=3) at /usr/include/qt/QtCore/qlist.h:548 | |
#5 0x00007fffcccd90ab in MarlinPlugin::extractTemp(QString const&) (this=0x9b8ba0, lastMessage=...) | |
at /home/patrick/git/atcore/src/plugins/marlinplugin.cpp:59 |