File tree 7 files changed +40
-12
lines changed
7 files changed +40
-12
lines changed Original file line number Diff line number Diff line change 36
36
- name : Save artifacts
37
37
uses : actions/upload-artifact@v4
38
38
with :
39
- name : firmware
39
+ name : radpro- firmware-snapshot
40
40
overwrite : true
41
41
path : tools/*.bin
Original file line number Diff line number Diff line change 4
4
5
5
* Added Bosean FS-5000 support.
6
6
* Added secondary dose view in average measurement mode.
7
+ * Extended conversion factor range to 25-1600 cpm/µSv/h.
7
8
* Added "SET tubeHVFrequency" and "SET tubeHVDutyCycle" data communication commands.
8
9
* Added 1 second datalog interval options and removed 30 seconds and 30 minutes datalog interval options.
9
10
* Added 12-hour time format.
10
- * Devices with data mode allow using the device wile data mode is active.
11
+ * Devices with data mode allow using the device wile data mode is active; data mode state is also preserved after powering off .
11
12
* Improved battery level indicator on the Bosean FS-600/FS-1000.
12
13
* Improved keyboard control scheme of the Bosean FS-1000.
13
14
* Changed data communications end of line to "\r\n".
Original file line number Diff line number Diff line change @@ -785,6 +785,22 @@ typedef struct
785
785
786
786
#endif
787
787
788
+ #if defined(STM32L4 )
789
+
790
+ __STATIC_INLINE void adc_enable_deep_power_down (ADC_TypeDef * base )
791
+ {
792
+ set_bits (base -> CR ,
793
+ ADC_CR_DEEPPWD );
794
+ }
795
+
796
+ __STATIC_INLINE void adc_disable_deep_power_down (ADC_TypeDef * base )
797
+ {
798
+ clear_bits (base -> CR ,
799
+ ADC_CR_DEEPPWD );
800
+ }
801
+
802
+ #endif
803
+
788
804
#if defined(STM32G0 ) || defined(STM32L4 )
789
805
790
806
__STATIC_INLINE void adc_enable_vreg (ADC_TypeDef * base )
Original file line number Diff line number Diff line change @@ -33,8 +33,11 @@ void initComm(void)
33
33
#if !defined(DATA_MODE )
34
34
startComm ();
35
35
#else
36
+ if (settings .dataMode )
37
+ startComm ();
38
+
36
39
selectMenuItem (& dataModeMenu ,
37
- 0 ,
40
+ settings . dataMode ,
38
41
2 );
39
42
#endif
40
43
}
@@ -186,8 +189,8 @@ void dispatchCommEvents(void)
186
189
else if (matchCommCommand ("GET tubeHVFrequency "))
187
190
sendCommOkWithFloat (getTubeHVFrequency (), 2 );
188
191
else if (matchCommCommandWithNumber ("SET tubeHVFrequency" ,
189
- & mantissa ,
190
- & factor ))
192
+ & mantissa ,
193
+ & factor ))
191
194
{
192
195
setTubeHVFrequency ((float )mantissa / (float )factor );
193
196
@@ -196,8 +199,8 @@ void dispatchCommEvents(void)
196
199
else if (matchCommCommand ("GET tubeHVDutyCycle "))
197
200
sendCommOkWithFloat (getTubeHVDutyCycle (), 4 );
198
201
else if (matchCommCommandWithNumber ("SET tubeHVDutyCycle" ,
199
- & mantissa ,
200
- & factor ))
202
+ & mantissa ,
203
+ & factor ))
201
204
{
202
205
setTubeHVDutyCycle ((float )mantissa / (float )factor );
203
206
Original file line number Diff line number Diff line change 103
103
};
104
104
105
105
#define TUBE_CONVERSIONFACTOR_VALUE_MIN 25.0F
106
- #define TUBE_CONVERSIONFACTOR_VALUE_MAX 800 .01F
107
- #define TUBE_CONVERSIONFACTOR_VALUE_LOG_MAX_MIN 5 .0F
108
- #define TUBE_CONVERSIONFACTOR_VALUE_NUM 81
106
+ #define TUBE_CONVERSIONFACTOR_VALUE_MAX 1600 .01F
107
+ #define TUBE_CONVERSIONFACTOR_VALUE_LOG_MAX_MIN 6 .0F
108
+ #define TUBE_CONVERSIONFACTOR_VALUE_NUM 97
109
109
#define TUBE_CONVERSIONFACTOR_NUM (TUBE_CONVERSIONFACTOR_PRESETS_NUM + TUBE_CONVERSIONFACTOR_VALUE_NUM)
110
110
111
111
enum
@@ -359,7 +359,7 @@ typedef struct
359
359
unsigned int tubeInstantaneousAveraging : 3 ;
360
360
unsigned int tubeDeadTimeCompensation : 6 ;
361
361
unsigned int tubeBackgroundCompensation : 4 ;
362
- #if defined(TUBE_HV_PWM )
362
+ #if defined(TUBE_HV_PWM )
363
363
unsigned int tubeHVProfile : 3 ;
364
364
unsigned int tubeHVFrequency : 3 ;
365
365
unsigned int tubeHVDutyCycle : 9 ;
@@ -390,6 +390,10 @@ typedef struct
390
390
unsigned int batteryType : 1 ;
391
391
#endif
392
392
393
+ #if defined(DATA_MODE )
394
+ unsigned int dataMode : 1 ;
395
+ #endif
396
+
393
397
unsigned int gameStrength : 3 ;
394
398
} Settings
395
399
#if defined(STM32G0 ) || defined(STM32L4 )
Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ void initADC(void)
42
42
43
43
rcc_enable_adc (ADC1 );
44
44
45
+ #if defined(STM32L4 )
46
+ adc_disable_deep_power_down (ADC1 );
47
+ #endif
48
+
45
49
#if (defined(STM32F0 ) && defined(GD32 )) || defined(STM32F1 )
46
50
adc_enable (ADC1 );
47
51
sleep (1 );
Original file line number Diff line number Diff line change 16
16
17
17
#define FIRMWARE_AUTHOR "Gissio"
18
18
#define FIRMWARE_NAME "Rad Pro"
19
- #define FIRMWARE_VERSION "2.0rc5-test13 "
19
+ #define FIRMWARE_VERSION "2.0rc5-test14 "
20
20
21
21
extern const View statisticsView ;
22
22
You can’t perform that action at this time.
0 commit comments