Skip to content

Commit

Permalink
Fix resources location
Browse files Browse the repository at this point in the history
  • Loading branch information
keithsw1111 committed Feb 9, 2025
1 parent e5f0855 commit 176f0c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion xLights/UtilFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ std::string GetResourcesDirectory() {
#ifndef __WXMSW__
return wxStandardPaths::Get().GetResourcesDir().ToStdString();
#else
return wxStandardPaths::Get().GetExecutablePath().ToStdString();
auto exec = wxStandardPaths::Get().GetExecutablePath().ToStdString();
return exec.substr(0, exec.find_last_of("/\\"));
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion xLights/outputs/xxxSerialOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void xxxSerialOutput::EndFrame(int suppressFrames) {

if (_changed || NeedToOutput(suppressFrames)) {
if (_serial != nullptr) {
for (uint32_t i = 0; i < _channels; ++i)
for (int32_t i = 0; i < _channels; ++i)
{
if (_lastSent[i] != _data[i] || _notSentCount[i] > 200) {
_notSentCount[i] = 0;
Expand Down

0 comments on commit 176f0c1

Please sign in to comment.