Skip to content

Commit ccc07b3

Browse files
authored
fixup fault regex (#355)
1 parent c5b5a60 commit ccc07b3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

scylla-server/src/socket_handler.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,13 @@ pub async fn socket_handler_with_metadata(
5858
);
5959
}
6060

61-
// init faults
61+
// init faults, only cirtical faults, as of 3/31 can JSON
6262
let fault_regex_bms: Regex =
63-
Regex::new(r"BMS\/Status\/F\/(.*)").expect("Could not compile regex!");
63+
Regex::new(r"BMS\/Faults\/(.*)").expect("Could not compile regex!");
6464
let fault_regex_charger: Regex =
6565
Regex::new(r"Charger\/Box\/F_(.*)").expect("Could not compile regex!");
66-
let fault_regex_mpu: Regex = Regex::new(r"MPU\/Fault\/(.*)").expect("Could not compile regex!");
66+
let fault_regex_mpu: Regex =
67+
Regex::new(r"MPU\/Fault\/Critical\/(.*)").expect("Could not compile regex!");
6768
let mut fault_ringbuffer = AllocRingBuffer::<FaultData>::new(25);
6869

6970
loop {

0 commit comments

Comments
 (0)