Skip to content

Commit

Permalink
Merge branch 'release-2.1.x' to fix common last bug
Browse files Browse the repository at this point in the history
# Conflicts:
#	VERSION.txt
#	aseba/launcher/src/tdmsupervisor.cpp
#	azure-pipelines.yml
#	osx/launcher.entitlements
  • Loading branch information
Michael Bonani committed Mar 15, 2021
2 parents 6a55742 + b9c5fde commit ce2defe
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 9 deletions.
4 changes: 2 additions & 2 deletions aseba/clients/studio/NodeTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ void NodeTab::updateMemoryUsage(const mobsya::CompilationResult& res) {
const QString bytecodeText =
tr("bytecode: %1/%2 (%3 %)")
.arg(res.bytecode_size())
.arg(res.variables_total_size())
.arg(res.bytecode_total_size())
.arg((double)res.bytecode_size() * 100. / res.bytecode_total_size(), 0, 'f', 1);
memoryUsageText->setText(trUtf8("<b>Memory usage</b> : %1, %2").arg(variableText).arg(bytecodeText));
}
Expand Down Expand Up @@ -1110,4 +1110,4 @@ void NodeTab::showEvent(QShowEvent*) {
}


} // namespace Aseba
} // namespace Aseba
4 changes: 4 additions & 0 deletions aseba/launcher/src/tdmsupervisor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

namespace mobsya {

#ifdef Q_OS_OSX
static const auto tdm_program_name = QByteArrayLiteral("../Helpers/thymio-device-manager");
#else
static const auto tdm_program_name = QByteArrayLiteral("../Helpers/thymio-device-manager");
#endif
static const auto max_launch_count = 10;

TDMSupervisor::TDMSupervisor(const Launcher& launcher, QObject* parent)
Expand Down
5 changes: 2 additions & 3 deletions aseba/thymio-device-manager/aseba_node_registery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,9 @@ void aseba_node_registery::on_update_discovery_complete(const boost::system::err
mLogError("Discovery : {}", ec.message());
m_discovery_needs_update = true;
} else {
mLogTrace("Discovery : update complete");
m_updating_discovery = false;
mLogTrace("Discovery : update complete");
}

m_updating_discovery = false;
if(m_discovery_needs_update) {
boost::asio::post(boost::asio::get_associated_executor(this),
boost::bind(&aseba_node_registery::update_discovery, this));
Expand Down
1 change: 0 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ jobs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'ThymioSuite.dmg'


- job: BuildForIOs
pool:
vmImage: 'macOS-10.14'
Expand Down
2 changes: 1 addition & 1 deletion flatpak/org.mobsya.ThymioSuite.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
{
"type": "archive",
"url": "https://github.com/Mobsya/ci-data/releases/download/data/vpl3-thymio-suite.tar.gz",
"sha256": "aa00de26b873c604eeb077ff492dfc3a8a6cfe3eb6b9f26e785fa09fae4bda04",
"sha256": "6cba8188b3f87927f5026646b80506566cdcaa49ae36080ce0ae404ed40b77de",
"strip-components": 0
}
],
Expand Down
16 changes: 16 additions & 0 deletions osx/device-manager.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.device.serial</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
</plist>
2 changes: 2 additions & 0 deletions osx/launcher.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
<true/>
Expand Down
4 changes: 2 additions & 2 deletions windows/NSIS.template.in
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@ Section "-Install the driver" InstDriver ; Hidden section -> always executed

${If} ${RunningX64}
DetailPrint $(STR_Drv_64bits)
ExecWait '"$INSTDIR\drivers\dpinst64.exe" /c /sa /lm /sw /PATH "$INSTDIR\drivers"' $0
ExecWait '"$INSTDIR\drivers\dpinst64.exe" /c /sa /lm /s /PATH "$INSTDIR\drivers"' $0
${Else}
DetailPrint $(STR_Drv_32bits)
ExecWait '"$INSTDIR\drivers\dpinst32.exe" /c /sa /lm /sw /PATH "$INSTDIR\drivers"' $0
ExecWait '"$INSTDIR\drivers\dpinst32.exe" /c /sa /lm /s /PATH "$INSTDIR\drivers"' $0
${EndIf}
DetailPrint "$(STR_Drv_Return_Code) $0"
IntCmpU $0 0x80000000 drv_error no_error drv_error
Expand Down
Binary file modified windows/thymio-drivers/dpinst32.exe
Binary file not shown.
Binary file modified windows/thymio-drivers/dpinst64.exe
Binary file not shown.
Binary file modified windows/thymio-drivers/drivers/win_8/mchpcdc.cat
Binary file not shown.
Binary file modified windows/thymio-drivers/drivers/win_8/mchpcdcw.cat
Binary file not shown.

0 comments on commit ce2defe

Please sign in to comment.