remove emojis from logging. Fixes #5
This commit is contained in:
+3
-3
@@ -161,7 +161,7 @@ async function goto(targetX, targetY, mode = 'direct') {
|
||||
// Quick check on final destination
|
||||
const destCheck = IK.checkWorkspace(targetX, targetY);
|
||||
if (!destCheck.ok) {
|
||||
UI.log(`⛔ Destination blocked: ${destCheck.reason}`, 'error');
|
||||
UI.log(`[ERROR] Destination blocked: ${destCheck.reason}`, 'error');
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ async function goto(targetX, targetY, mode = 'direct') {
|
||||
// Prevent infinite loop if already at/near safe point
|
||||
const distToSafe = Math.sqrt(Math.pow(currentPos.endX - SAFE_X, 2) + Math.pow(currentPos.endY - SAFE_Y, 2));
|
||||
if (distToSafe < 5) {
|
||||
UI.log(`⛔ Path completely blocked even via safe point`, 'error');
|
||||
UI.log(`[ERROR] Path completely blocked even via safe point`, 'error');
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -199,7 +199,7 @@ async function goto(targetX, targetY, mode = 'direct') {
|
||||
}
|
||||
|
||||
if (!segments) {
|
||||
UI.log(`⛔ Target unreachable (path blocked by mechanism)`, 'error');
|
||||
UI.log(`[ERROR] Target unreachable (path blocked by mechanism)`, 'error');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ async function moveToXY(targetX, targetY) {
|
||||
// Check workspace limits first (quick check before queue)
|
||||
const wsCheck = IK.checkWorkspace(targetX, targetY);
|
||||
if (!wsCheck.ok) {
|
||||
UI.log(`⛔ ${wsCheck.reason}`, 'warn');
|
||||
UI.log(`[WARNING] ${wsCheck.reason}`, 'warn');
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -697,7 +697,7 @@ const StepperTestSection = {
|
||||
const { wx, wy, sx, sy } = pointerToWorld(e);
|
||||
const ws = IK.checkWorkspace(wx, wy);
|
||||
if (!ws.ok) {
|
||||
UI.log(`⛔ ${ws.reason}`, 'warn');
|
||||
UI.log(`[WARNING] ${ws.reason}`, 'warn');
|
||||
return;
|
||||
}
|
||||
showTargetMarker(sx, sy);
|
||||
|
||||
+2
-2
@@ -86,7 +86,7 @@ const UI = (() => {
|
||||
BLE.on('connected', (name) => {
|
||||
setButtonLoading('btn-ble-connect', false);
|
||||
setConnectionStatus(true, name);
|
||||
log(`Connected to "${name}" ✓`, 'success');
|
||||
log(`Connected to "${name}" [INFO]`, 'success');
|
||||
});
|
||||
|
||||
BLE.on('disconnected', () => {
|
||||
@@ -96,7 +96,7 @@ const UI = (() => {
|
||||
});
|
||||
|
||||
BLE.on('sent', (cmd) => {
|
||||
log(`→ ${cmd}`, 'sent');
|
||||
log(`[SEND] ${cmd}`, 'sent');
|
||||
});
|
||||
|
||||
BLE.on('status', (msg) => {
|
||||
|
||||
Reference in New Issue
Block a user