code spell checking - part4 (MM specific)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
- #define ARDUINOJSON_DEFAULT_NESTING_LIMIT 100 //set this in ArduinoJson!!!, currently not necessary...
|
||||
- IF UPDATING THIS FILE IN THE WLED REPO, SEND A PULL REQUEST TO https://github.com/ewoudwijma/ARTI AS WELL!!!
|
||||
@later
|
||||
- Code improvememt
|
||||
- Code improvement
|
||||
- See 'for some weird reason this causes a crash on esp32'
|
||||
- check why column/lineno not correct
|
||||
- Definition improvements
|
||||
@@ -2181,7 +2181,7 @@ public:
|
||||
ERROR_ARTI("%s %s %s unknown\n", spaces+50-depth, key, variable_name);
|
||||
valueStack->push(floatNull);
|
||||
}
|
||||
} // ! founnd
|
||||
} // ! fouund
|
||||
visitedAlready = true;
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
// For testing porposes, definitions should not only run on Arduino but also on Windows etc.
|
||||
// For testing purposes, definitions should not only run on Arduino but also on Windows etc.
|
||||
// Because compiling on arduino takes seriously more time than on Windows.
|
||||
// The plugin.h files replace native arduino calls by windows simulated calls (e.g. setPixelColor will become printf)
|
||||
|
||||
@@ -185,7 +185,7 @@ float ARTI::arti_external_function(uint8_t function, float par1, float par2, flo
|
||||
|
||||
float halfLength = (circleLength-1)/2.0;
|
||||
|
||||
//calculate circle positions, round to 5 digits and then round again to cater for radians inprecision (e.g. 3.49->3.5->4)
|
||||
//calculate circle positions, round to 5 digits and then round again to cater for radians imprecision (e.g. 3.49->3.5->4)
|
||||
int x = round(round((sin(radians(par1)) * halfLength + halfLength) * 10)/10) + deltaWidth;
|
||||
int y = round(round((halfLength - cos(radians(par1)) * halfLength) * 10)/10) + deltaHeight;
|
||||
return SEGMENT.XY(x,y);
|
||||
|
||||
@@ -82,7 +82,7 @@ function populateCEEditor(name, segID)
|
||||
<button class="btn infobtn btn-xs" onclick="location.href='https://mm.kno.wled.ge/moonmodules/arti-fx'" type="button">?</button><br>
|
||||
<br><i>Compile and Run Log</i><br>
|
||||
<textarea class="ceTextarea" id="ceLogArea"></textarea><br>
|
||||
<i>Run log > 3 seconds is send to Serial Ouput.</i><br>
|
||||
<i>Run log > 3 seconds is send to Serial Output.</i><br>
|
||||
<a href="#" onclick="downloadGHFile('HBB','presets.json',true,true);return false;" title="Download HBaas Base presets">🥚</a>
|
||||
<a href="#" onclick="downloadGHFile('HBE','presets.json',true,true);return false;" title="Download HBaas Effects presets">🥚</a>
|
||||
<a href="#" onclick="downloadGHFile('LM','presets.json',true,true);return false;" title="Download Ledmap presets">🥚</a>`;
|
||||
|
||||
@@ -19,7 +19,7 @@ ARTI * arti;
|
||||
//effect function
|
||||
uint16_t mode_ARTIFX(void) {
|
||||
//tbd: move statics to SEGMENT.data
|
||||
static bool succesful;
|
||||
static bool successful;
|
||||
static bool notEnoughHeap;
|
||||
|
||||
static char previousEffect[charLength];
|
||||
@@ -46,20 +46,20 @@ uint16_t mode_ARTIFX(void) {
|
||||
// artiWrapper = reinterpret_cast<ArtiWrapper*>(SEGENV.data);
|
||||
arti = new ARTI();
|
||||
|
||||
succesful = arti->setup("/wledv033.json", currentEffect);
|
||||
successful = arti->setup("/wledv033.json", currentEffect);
|
||||
|
||||
if (!succesful)
|
||||
ERROR_ARTI("Setup not succesful\n");
|
||||
if (!successful)
|
||||
ERROR_ARTI("Setup not successful\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
if (succesful) // && SEGENV.call < 250 for each frame
|
||||
if (successful) // && SEGENV.call < 250 for each frame
|
||||
{
|
||||
if (FREE_SIZE <= 20000)
|
||||
{
|
||||
ERROR_ARTI("Not enough free heap (%u <= 30000)\n", FREE_SIZE);
|
||||
notEnoughHeap = true;
|
||||
succesful = false;
|
||||
successful = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -71,7 +71,7 @@ uint16_t mode_ARTIFX(void) {
|
||||
// previousCall = SEGENV.call;
|
||||
// }
|
||||
|
||||
succesful = arti->loop();
|
||||
successful = arti->loop();
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -79,7 +79,7 @@ uint16_t mode_ARTIFX(void) {
|
||||
arti->closeLog();
|
||||
if (notEnoughHeap && FREE_SIZE > 20000) {
|
||||
ERROR_ARTI("Again enough free heap, restart effect (%u > 30000)\n", FREE_SIZE);
|
||||
succesful = true;
|
||||
successful = true;
|
||||
notEnoughHeap = false;
|
||||
strcpy(previousEffect, ""); // force new create
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user