Node view updates

This commit is contained in:
Sacha Weatherstone
2021-12-09 20:14:35 +11:00
parent bd92905ee4
commit bd5efb4ae4
4 changed files with 217 additions and 59 deletions
+5 -1
View File
@@ -19,6 +19,7 @@ interface CurrentPosition {
longitudeI: number;
altitude: number;
posTimestamp: number;
satsInView: number;
}
export interface Node {
@@ -113,7 +114,10 @@ export const meshtasticSlice = createSlice({
node.currentPosition?.longitudeI,
altitude:
action.payload.data.altitude ?? node.currentPosition?.altitude,
posTimestamp: action.payload.data.posTimestamp, //maybe new date?
posTimestamp: action.payload.data.posTimestamp,
satsInView:
action.payload.data.satsInView ??
node.currentPosition?.satsInView,
};
}