File tree Expand file tree Collapse file tree 5 files changed +2
-49
lines changed
Expand file tree Collapse file tree 5 files changed +2
-49
lines changed Original file line number Diff line number Diff line change 169169 "namimnorc" : {
170170 "name" : " NamimnoRC" ,
171171 "txbp" : {
172- "voyager_stm" : {
173- "product_name" : " NamimnoRC Voyager 900MHz TX" ,
174- "platform" : " stm8285" ,
175- "firmware" : " STM_TX_Backpack" ,
176- "upload_methods" : [" uart" , " wifi" ]
177- },
178172 "voyager" : {
179173 "product_name" : " NamimnoRC Voyager OLED 900MHz TX" ,
180174 "firmware" : " ESP_TX_Backpack" ,
181175 "platform" : " esp8285" ,
182176 "upload_methods" : [" uart" , " wifi" ]
183177 },
184- "flash_stm" : {
185- "product_name" : " NamimnoRC Flash 2.4GHz TX" ,
186- "platform" : " stm8285" ,
187- "firmware" : " STM_TX_Backpack" ,
188- "upload_methods" : [" uart" , " wifi" ]
189- },
190178 "flash" : {
191179 "product_name" : " NamimnoRC Flash OLED 2.4GHz TX" ,
192180 "firmware" : " ESP_TX_Backpack" ,
Original file line number Diff line number Diff line change @@ -12,20 +12,4 @@ class ELRS_EEPROM
1212 uint8_t ReadByte (const uint32_t address);
1313 void WriteByte (const uint32_t address, const uint8_t value);
1414 void Commit ();
15-
16- // The extEEPROM lib that we use for STM doesn't have the get and put templates
17- // These templates need to be reimplemented here
18- template <typename T> void Get (uint32_t addr, T &value)
19- {
20- uint8_t * p = (uint8_t *)(void *)&value;
21- size_t i = sizeof (value);
22- while (i--) *p++ = ReadByte (addr++);
23- };
24-
25- template <typename T> const void Put (uint32_t addr, const T &value)
26- {
27- const uint8_t * p = (const uint8_t *)(const void *)&value;
28- size_t i = sizeof (value);
29- while (i--) WriteByte (addr++, *p++);
30- };
3115};
Original file line number Diff line number Diff line change 22
33class UpdateWrapper {
44public:
5- void setSTMUpdate (bool stmMode) {
6- _stmMode = stmMode;
7- }
85
96#if PLATFORM_ESP8266
107 bool begin (size_t size) {
@@ -38,7 +35,7 @@ class UpdateWrapper {
3835
3936 void runAsync (bool async) {
4037 #ifdef PLATFORM_ESP8266
41- if (!_stmMode) Update.runAsync (async);
38+ Update.runAsync (async);
4239 #endif
4340 }
4441
@@ -48,11 +45,10 @@ class UpdateWrapper {
4845
4946#ifdef PLATFORM_ESP32
5047 void abort () {
51- if (!_stmMode) Update.abort ();
48+ Update.abort ();
5249 }
5350#endif
5451
5552private:
56- bool _stmMode = false ;
5753 bool _running = false ;
5854};
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ extra_configs =
66 targets/common.ini
77 targets/debug.ini
88 targets/txbp_esp.ini
9- targets/txbp_stm.ini
109 targets/timer.ini
1110 # defined one by one to maintain the order
1211 targets/aat.ini
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments