Search found 35 matches

by ihornehrutsa
Mon Dec 07, 2020 12:26 pm
Forum: Development of MicroPython
Topic: git-flow extension for developers
Replies: 29
Views: 14397

Re: git-flow extension for developers

This pull request https://github.com/micropython/micropython/pull/6276 does not seem as High-Frequency Integration.
But anyway I vote to approve it.
by ihornehrutsa
Mon Dec 07, 2020 9:44 am
Forum: Development of MicroPython
Topic: git-flow extension for developers
Replies: 29
Views: 14397

Re: git-flow extension for developers

Peter, I don't quite understand your question.
Do you mean that there are BIG merge problems in MicroPython?
I don't know about problems, but High-Frequency Integration gives advantages over the Low-Frequency Integration.
See the article.
by ihornehrutsa
Sat Dec 05, 2020 7:13 pm
Forum: Development of MicroPython
Topic: git-flow extension for developers
Replies: 29
Views: 14397

Re: git-flow extension for developers

It seems that Micropython uses Low-Frequency Integration
https://martinfowler.com/articles/branc ... -frequency

But too low and slow. :(
by ihornehrutsa
Fri Nov 27, 2020 10:05 am
Forum: Development of MicroPython
Topic: git-flow extension for developers
Replies: 29
Views: 14397

Re: git-flow extension for developers

I think you should take a step back and read some tutorial(s) about how PR workflows work. It would answer most of your questions. Let's be more concretely. I can't find that case in tutorials about PR. We have the frozen(no longer supported by the author) PR. It has a bug. We have the new inherite...
by ihornehrutsa
Fri Nov 27, 2020 7:21 am
Forum: Development of MicroPython
Topic: git-flow extension for developers
Replies: 29
Views: 14397

Re: git-flow extension for developers

I want to continue here. I want to consider the real case of the cooperative development of a feature. There is PR esp32/machine_pwm: handle multiple timers. #6276 I can fetchpr 6276 (as described upper) and I do it and make some bugfix. I can't create PR to the forked repository branch of #6276 (ht...
by ihornehrutsa
Thu Oct 29, 2020 6:00 am
Forum: ESP32 boards
Topic: ESP32: Check the ESP-IDF error code
Replies: 1
Views: 3006

ESP32: Check the ESP-IDF error code

Where is an example of how to develop a new exception type in C-code? It should be equivalent to the following Python code: ''' from https://github.com/espressif/esp-idf/blob/master/components/esp_common/include/esp_err.h ''' class EspError(Exception): ''' Definitions for error constants. ''' ESP_OK...
by ihornehrutsa
Thu Oct 22, 2020 8:21 pm
Forum: Development of MicroPython
Topic: git-flow extension for developers
Replies: 29
Views: 14397

Re: git-flow extension for developers

Thanks

Add to micropithon/.git/config

Code: Select all

[alias]
  fetchpr = "!f() { git fetch upstream pull/${1}/head:pr/${1}; }; f"  
and then possible command with pull request number as a parameter
git fetchpr 3608
by ihornehrutsa
Thu Oct 22, 2020 5:55 pm
Forum: Development of MicroPython
Topic: git-flow extension for developers
Replies: 29
Views: 14397

Re: git-flow extension for developers

Thanks, jimmo Thanks, stijn My 'micropython\.git\config' has a structure too different from the alias.fetchpr !sh -c 'git fetch upstream pull/'$1'/head:pr/'$1' micropython\.gt\config: [core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase...
by ihornehrutsa
Wed Oct 21, 2020 8:18 pm
Forum: General Discussion and Questions
Topic: A correct example of using utime.ticks_add and utime.ticks_diff
Replies: 4
Views: 2417

Re: A correct example of using utime.ticks_add and utime.ticks_diff

Thanks, Divergentti But if your MQTT client lasts ~ 12 days(not rarely for IoT), you will get negative values unexpected for newbies. Thanks, Peter pythoncoder But if your code import time t = time.ticks_ms() time.sleep(5) # or do something print(time.ticks_diff(time.ticks_ms(), t)) lasts ~ 12 days,...
by ihornehrutsa
Wed Oct 21, 2020 7:18 pm
Forum: Development of MicroPython
Topic: Disabling REPL on esp32 UART0
Replies: 1
Views: 2005

Re: Disabling REPL on esp32 UART0

Write in boot.py:

Code: Select all

from uos import dupterm
dupterm(None, 1)  # Disable REPL on UART(0)
But not ideal, if a hacker breaks the boot.py before this code, he can catch the REPR.