Skip to content

Commit 7b96b81

Browse files
committed
Compile test: Add SUPPORT_SEMPU test
1 parent 3166329 commit 7b96b81

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/compile_test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
'SUPPORT_THROTTLE',
3333
'SUPPORT_PAS',
3434
'SUPPORT_XCELL_RT',
35+
'SUPPORT_SEMPU',
3536
'SUPPORT_TORQUE_THROTTLE',
3637
'TORQUE_AUTOZERO',
3738
'SUPPORT_HRMI',
@@ -405,11 +406,14 @@ def test_bluetooth_modes(self):
405406
self.build_firmware(bluetooth_mode, bluetooth_mode=bluetooth_mode)
406407

407408
def test_control_modes(self):
408-
for control_mode in ['NORMAL', 'LIMIT_WH_PER_KM', 'TORQUE']:
409+
for control_mode in ['NORMAL', 'LIMIT_WH_PER_KM', 'TORQUE', 'TORQUE_SEMPU']:
409410
# Enable XCELL_RT support in TORQUE mode
410411
my_features = DEFAULT_FEATURES.copy()
411412
if control_mode == 'TORQUE':
412413
my_features.append('SUPPORT_XCELL_RT')
414+
if control_mode == 'TORQUE_SEMPU':
415+
my_features.append('SUPPORT_SEMPU')
416+
control_mode = 'TORQUE'
413417

414418
self.build_firmware(control_mode, control_mode=control_mode, features=my_features)
415419

0 commit comments

Comments
 (0)