up
This commit is contained in:
@@ -231,7 +231,6 @@ func (c *Client) messageLoop() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("FlexRadio RX: %s", line)
|
|
||||||
c.handleMessage(line)
|
c.handleMessage(line)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,16 @@
|
|||||||
$: interlockState = flexradio?.interlock_state || null;
|
$: interlockState = flexradio?.interlock_state || null;
|
||||||
$: interlockColor = getInterlockColor(interlockState);
|
$: interlockColor = getInterlockColor(interlockState);
|
||||||
|
|
||||||
|
// Debug log
|
||||||
|
$: if (flexradio) {
|
||||||
|
console.log('FlexRadio data:', {
|
||||||
|
connected: flexradio.connected,
|
||||||
|
interlock_state: flexradio.interlock_state,
|
||||||
|
interlockConnected,
|
||||||
|
interlockState
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
function getInterlockColor(state) {
|
function getInterlockColor(state) {
|
||||||
switch(state) {
|
switch(state) {
|
||||||
case 'READY': return '#4caf50';
|
case 'READY': return '#4caf50';
|
||||||
|
|||||||
Reference in New Issue
Block a user