mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Add more debug logging for device types and manufacturers
- Log device_type in updateBtTypeChart to see what values are received - Log manufacturer in updateBtManufacturerList - This will help diagnose why types/manufacturers aren't showing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4129,12 +4129,14 @@ HTML_TEMPLATE = '''
|
||||
|
||||
Object.values(btDevices).forEach(d => {
|
||||
const devType = d.device_type || 'other';
|
||||
console.log('[CHART] Device:', d.mac, 'device_type:', d.device_type, 'resolved:', devType);
|
||||
if (d.tracker) trackers++;
|
||||
else if (devType === 'phone') phones++;
|
||||
else if (devType === 'audio') audio++;
|
||||
else if (devType === 'wearable') wearables++;
|
||||
else other++;
|
||||
});
|
||||
console.log('[CHART] Totals - phones:', phones, 'audio:', audio, 'wearables:', wearables, 'trackers:', trackers, 'other:', other);
|
||||
|
||||
document.getElementById('btPhoneCount').textContent = phones;
|
||||
document.getElementById('btAudioCount').textContent = audio;
|
||||
@@ -4192,10 +4194,12 @@ HTML_TEMPLATE = '''
|
||||
const manufacturers = {};
|
||||
Object.values(btDevices).forEach(d => {
|
||||
const m = d.manufacturer || 'Unknown';
|
||||
console.log('[MFR] Device:', d.mac, 'manufacturer:', d.manufacturer, 'resolved:', m);
|
||||
manufacturers[m] = (manufacturers[m] || 0) + 1;
|
||||
});
|
||||
|
||||
const sorted = Object.entries(manufacturers).sort((a, b) => b[1] - a[1]).slice(0, 6);
|
||||
console.log('[MFR] Sorted manufacturers:', sorted);
|
||||
|
||||
const list = document.getElementById('btManufacturerList');
|
||||
if (sorted.length === 0) {
|
||||
|
||||
Reference in New Issue
Block a user