Skip to content

Commit c3cf661

Browse files
committed
Move selection of OBS Variant to ini file
1 parent 37f75a0 commit c3cf661

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

custom_config.ini.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ build_flags =
1818
-DDEVELOP
1919
; http lib loglevel
2020
-DHTTPS_LOGLEVEL=3
21+
; select OBS Variant
22+
-DOBSCLASSIC
23+
; -DOBSPRO
2124

2225

2326
; === upload_port ===

platformio.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,6 @@ build_flags =
6969
-DHTTPS_CONNECTION_DATA_CHUNK_SIZE=1024
7070
; build number "-dev" will be replaced in github action
7171
-DBUILD_NUMBER=\"-dev\"
72+
; Select variant here
73+
-DOBSPRO
74+
; -DOBSCLASSIC

src/variant.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@
2424
#ifndef VARIANT_H
2525
#define VARIANT_H
2626

27+
28+
// Use custom_config.ini to set the needed variant!
2729
// If set, the firmware is build for the OBSPro hardware variant
2830
// The main differences are:
2931
// - The button is inverted
3032
// - The button is also responsible for soft-power-off
3133
// - The display is a JHD12864-G156BT which is SPI based
3234
// - The ultrasonic sensors are PGA460 based
33-
#define OBSPRO
35+
//#define OBSPRO
3436

3537
// If set, the firmware is build for the OBSClassic
3638
//#define OBSCLASSIC

0 commit comments

Comments
 (0)