diff --git a/src/M2_12VIO.cpp b/src/M2_12VIO.cpp index d5d60c2..12d411a 100644 --- a/src/M2_12VIO.cpp +++ b/src/M2_12VIO.cpp @@ -467,6 +467,16 @@ uint16_t M2_12VIO::Reset_Current_Limit(){ return(M2_12VIO::Enable_12VIO_Monitor(ON)); } +/** +* \brief +* Disable the Current Trip Interrupt, prevents the output from being disabled due to faults or transients +* WARNING, you will only have the (relatively) slow PTC fuse to protect your outputs +* \param NIL +* \return void +*/ +void M2_12VIO::Disable_Current_Trip(){ + detachInterrupt(digitalPinToInterrupt(Interupt_Over_Current)); +} /* *\brief diff --git a/src/M2_12VIO.h b/src/M2_12VIO.h index 82b72a3..500ee40 100644 --- a/src/M2_12VIO.h +++ b/src/M2_12VIO.h @@ -247,6 +247,7 @@ class M2_12VIO{ uint16_t Init_12VIO(); uint16_t Reset_Current_Limit(); + void Disable_Current_Trip(); uint16_t Sleep(uint8_t Sleep_Mode); uint32_t Load_Amps(); uint32_t Supply_Volts(); diff --git a/src/keywords.txt b/src/keywords.txt index 6a8889c..3b4900c 100644 --- a/src/keywords.txt +++ b/src/keywords.txt @@ -12,6 +12,7 @@ ####################################### Init_12VIO() KEYWORD2 Reset_Current_Limit() KEYWORD2 +Disable_Current_Trip() KEYWORD2 Load_Amps() KEYWORD2 Supply_Volts() KEYWORD2 Read_12VIO(IO_Pin) KEYWORD2