message
stringlengths
6
474
diff
stringlengths
8
5.22k
doc: add missing empty value for `kdb set`
@@ -32,7 +32,7 @@ if is_plugin_available dump && is_plugin_available list && is_plugin_available s [ $? != 0 ] succeed_if "getting cascading should fail if nothing is there" - "$KDB" set spec:$ROOT_MOUNTPOINT/test > /dev/null + "$KDB" set spec:$ROOT_MOUNTPOINT/test "" > /dev/null succeed_if "could not create key" "$KDB" get $ROOT_MOUNTPOINT
Action SW: Include snap_env.sh in make process
# limitations under the License. # +-include $(SNAP_ROOT)/snap_env.sh + ifndef PSLSE_ROOT # FIXME If we find a better way to do the following, let us know: # Environment variable PSLSE_ROOT defined by hardware setup scripts.
gall: style indentation
%huck note-arvo.neet %agent [%g %deal [our ship.neet] [name deal]:neet] == - [system-duct.state %pass wire note-arvo]~ + [duct %pass wire note-arvo]~ == :: +ap-breach: ship breached, so forget about them :: (on-bad-nonce nonce.u.got) run-sign :: + ++ sub-key [agent-wire dock] + ++ ingest (ap-ingest ~ |.((on-agent:ap-agent-core agent-wire sign))) ++ run-sign ?- -.sign %poke-ack !! :: ingest-and-check-error == + :: ++ on-missing %. ap-core %- slog :~ leaf+"{<dock>}: {<[nonce=nonce agent-wire]>}" >wire=wire< == + :: ++ on-bad-nonce |= stored-nonce=@ %. ap-core >wire=wire< == :: - ++ sub-key [agent-wire dock] - ++ ingest (ap-ingest ~ |.((on-agent:ap-agent-core agent-wire sign))) - :: ++ ingest-and-check-error ^+ ap-core =^ tan ap-core ingest moves t.moves new-moves [move new-moves] sub-nonce.yoke +(sub-nonce.yoke) + :: outbound.watches.yoke %+ ~(put by outbound.watches.yoke) [sub-wire dock] :+ acked=|
ec_commands: Add GENMASK macros GENMASK is used in ec_commands.h, but is not defined if not compiling in kernel or Chrome OS EC environments. BRANCH=none TEST=make buildall
@@ -56,6 +56,14 @@ extern "C" { #define BIT_ULL(nr) (1ULL << (nr)) #endif +#ifndef GENMASK +#define GENMASK(h, l) (((BIT(h) << 1) - 1) ^ (BIT(l) - 1)) +#endif + +#ifndef GENMASK_ULL +#define GENMASK_ULL(h, l) (((BIT_ULL(h) << 1) - 1) ^ (BIT_ULL(l) - 1)) +#endif + #endif /* __KERNEL__ */ /*
ignores our own route updates in :dns
++ rove |= [wir=wire p=ship q=lane:ames] ^- (quip move _this) + :: XX move to %ames + ?: =(our.bow p) + [~ this] ?. =(our.bow (sein:title p)) :: XX check will ~& [%rove-false p] [~ this]
Fix debug message for wifi.sta.getrssi()
@@ -1168,7 +1168,7 @@ static int wifi_station_status( lua_State* L ) // Lua: wifi.sta.getrssi() static int wifi_station_getrssi( lua_State* L ){ sint8 rssival=wifi_station_get_rssi(); - NODE_DBG("\n\tRSSI is %i\n", rssival); + NODE_DBG("\n\tRSSI is %d\n", rssival); if (rssival<10) { lua_pushinteger(L, rssival);
decrease left/right animation duration
@@ -4508,7 +4508,7 @@ animleft(const Arg *arg) { } c = selmon->sel; - animateclient(c, c->x + 50, c->y, 0,0,10,1); + animateclient(c, c->x + 50, c->y, 0,0,6,1); viewtoleft(arg); } @@ -4521,12 +4521,11 @@ animright(const Arg *arg) { } c = selmon->sel; - animateclient(c, c->x - 50, c->y, 0,0,10,1); + animateclient(c, c->x - 50, c->y, 0,0,6,1); viewtoright(arg); } - void viewtoleft(const Arg *arg) { int i;
Updated AUTHORS with the latest changes.
@@ -10,6 +10,7 @@ Special thanks to the following individuals for their great contributions: * aishikoyo <[email protected]> * Alan Placidina <[email protected]> * Alexander Eifler <[email protected]> + * Alexandre GUIOT--VALENTIN <[email protected]> * Alexandre Perrin <[email protected]> * A. Nackov <[email protected]> * Anders Johansson <[email protected]>
Update CMake configuration for VSCode settings.
"cmake.configureSettings": { "LIBTCOD_SAMPLES": "ON", "LIBTCOD_TESTS": "ON", + "LIBTCOD_THREADS": "OFF", "LIBTCOD_SDL2": "find_package", // find_package | disable "LIBTCOD_ZLIB": "find_package", "LIBTCOD_GLAD": "find_package", // find_package | vendored "LIBTCOD_LODEPNG": "find_package", "LIBTCOD_UTF8PROC": "vcpkg", - "LIBTCOD_STB": "vcpkg", + "LIBTCOD_STB": "find_package", }, "cmake.configureArgs": [ "-Wdev", "-Wdeprecated", - "--warn-uninitialized", ], "cmake.debugConfig": { // Workaround for launching the debugger from the CMake toolbar.
ci: revert the removal of -it from docker options
@@ -3,7 +3,7 @@ SRC_DIR=/h2o CHECK_MK=$(SRC_DIR)/misc/docker-ci/check.mk CMAKE_ARGS= FUZZ_ASAN=ASAN_OPTIONS=detect_leaks=0 -DOCKER_RUN_OPTS=--privileged -v `pwd`:$(SRC_DIR) -v /sys/kernel/debug:/sys/kernel/debug --add-host=127.0.0.1.xip.io:127.0.0.1 +DOCKER_RUN_OPTS=--privileged -v `pwd`:$(SRC_DIR) -v /sys/kernel/debug:/sys/kernel/debug --add-host=127.0.0.1.xip.io:127.0.0.1 -it ALL: docker run $(DOCKER_RUN_OPTS) $(CONTAINER_NAME) make -f $(SRC_DIR)/misc/docker-ci/check.mk _check
Fix condition in mbedtls_ssl_get_record_expansion
@@ -5101,7 +5101,7 @@ int mbedtls_ssl_get_record_expansion( const mbedtls_ssl_context *ssl ) { transform_expansion = transform->minlen; } - else if ( transform->psa_alg ) + else if ( transform->psa_alg == PSA_ALG_CBC_NO_PADDING ) { (void) psa_get_key_attributes( transform->psa_key_enc, &attr ); key_type = psa_get_key_type( &attr );
Added github.com/BurntSushi/toml to whitelist
@@ -6,6 +6,9 @@ ALLOW .* -> vendor/github.com/alicebob/miniredis # AWS client libraries ALLOW .* -> vendor/github.com/aws/aws-sdk-go +# TOML parser/encoder with reflection +ALLOW .* -> vendor/github.com/BurntSushi/toml + # helpers for data sizes (kilobytes, petabytes), human readable sizes, parsing ALLOW .* -> vendor/github.com/c2h5oh/datasize
main shm BUGFIX for keeping previous permissions -1 is used Fixes
@@ -1376,7 +1376,7 @@ sr_shmmain_check_data_files(sr_main_shm_t *main_shm) cur_group = group; } if (perm == cur_perm) { - cur_perm = 0; + cur_perm = (mode_t)-1; } else { cur_perm = perm; } @@ -1425,7 +1425,7 @@ sr_shmmain_check_data_files(sr_main_shm_t *main_shm) cur_group = group; } if (perm == cur_perm) { - cur_perm = 0; + cur_perm = (mode_t)-1; } else { cur_perm = perm; }
Fixed script review when using multi panel text
@@ -4,14 +4,12 @@ import * as actions from "../../actions"; import PageHeader from "../../components/library/PageHeader"; import PageContent from "../../components/library/PageContent"; import ScriptReviewLine from "../../components/script/ScriptReviewLine"; -import trimlines from "../../lib/helpers/trimlines"; import { walkEvents, patchEvents } from "../../lib/helpers/eventSystem"; import { EVENT_TEXT } from "../../lib/compiler/eventTypes"; import l10n from "../../lib/helpers/l10n"; class ScriptsPage extends Component { - onChange = (map, actorIndex, currentScript, id) => e => { - const value = trimlines(e.currentTarget.value); + onChange = (map, actorIndex, currentScript, id) => value => { const newData = patchEvents(currentScript, id, { text: value }); @@ -59,7 +57,7 @@ class ScriptsPage extends Component { scriptLine={scriptLine} onChange={this.onChange( scriptLine.scene.id, - scriptLine.actorIndex, + scriptLine.actor.id, scriptLine.actor.script, scriptLine.line.id )}
edit diff BUGFIX remove invalid internal error
@@ -2064,7 +2064,6 @@ sr_edit_apply_replace(struct lyd_node *match_node, int val_equal, const struct l lyrc = lyd_change_term(match_node, lyd_get_value(edit_node)); if (lyrc && (lyrc != LY_EEXIST)) { free(prev_val); - SR_ERRINFO_INT(&err_info); return err_info; }
BugID:18537059: fix the white scan problem of forward null in LoRaMacCommands.c
@@ -374,7 +374,7 @@ static bool mcLinkedListInit( MacMcCommandsList_t* list ) static bool mcLinkedListAdd( MacMcCommandsList_t* list, MacMcCommand_t* element ) { - if( ( list == 0 ) && ( element == 0 ) ) + if( ( list == 0 ) || ( element == 0 ) ) { return false; } @@ -402,7 +402,7 @@ static bool mcLinkedListAdd( MacMcCommandsList_t* list, MacMcCommand_t* element static MacMcCommand_t* mcLinkedListGetPrevious( MacMcCommandsList_t* list, MacMcCommand_t* element ) { - if( ( list == 0 ) && ( element == 0 ) ) + if( ( list == 0 ) || ( element == 0 ) ) { return NULL; } @@ -434,7 +434,7 @@ static MacMcCommand_t* mcLinkedListGetPrevious( MacMcCommandsList_t* list, MacMc static bool mcLinkedListRemove( MacMcCommandsList_t* list, MacMcCommand_t* element ) { - if( ( list == 0 ) && ( element == 0 ) ) + if( ( list == 0 ) || ( element == 0 ) ) { return false; }
revert the changes of bsp_radio project.
@@ -26,8 +26,8 @@ end of frame event), it will turn on its error LED. #define LENGTH_PACKET 125+LENGTH_CRC ///< maximum length is 127 bytes #define CHANNEL 11 ///< 11=2.405GHz -#define TIMER_PERIOD 0xfff ///< 0xffff = 2s@32kHz -#define ID 0x66 ///< byte sent in the packets +#define TIMER_PERIOD 0xffff ///< 0xffff = 2s@32kHz +#define ID 0x99 ///< byte sent in the packets //=========================== variables =======================================
jit: Don't inline functions that access thread-locals. Code inlined by LLVM can crash or fail with "Relocation type not implemented yet!" if it tries to access thread local variables. Don't inline such code. Back-patch to 11, where LLVM arrived. Bug Author: Dmitry Marakasov Discussion:
@@ -608,6 +608,17 @@ function_inlinable(llvm::Function &F, if (rv->materialize()) elog(FATAL, "failed to materialize metadata"); + /* + * Don't inline functions that access thread local variables. That + * doesn't work on current LLVM releases (but might in future). + */ + if (rv->isThreadLocal()) + { + ilog(DEBUG1, "cannot inline %s due to thread-local variable %s", + F.getName().data(), rv->getName().data()); + return false; + } + /* * Never want to inline externally visible vars, cheap enough to * reference.
tools/ci/docker/linux/Dockerfile: Install CodeChecker and requirements(clang, clang-tidy)
@@ -229,6 +229,8 @@ RUN apt-get update -qq && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q gcc \ gcc-avr \ gcc-multilib \ + clang \ + clang-tidy \ gettext \ git \ lib32z1-dev \ @@ -260,6 +262,8 @@ ENV PIP_NO_CACHE_DIR=0 # setuptools and also wheel so we can use the binary releases of packages # instead of requiring them to be compiled. RUN pip3 install setuptools wheel +# Install CodeChecker and use it to statically analyze the code. +RUN pip3 install CodeChecker RUN mkdir /tools WORKDIR /tools
Check getauxval on systems that have it when checking for setuid execution.
@@ -31,12 +31,18 @@ int OPENSSL_issetugid(void) # include OPENSSL_UNISTD # include <sys/types.h> +# if defined(__GLIBC__) && defined(__GLIBC_PREREQ) +# if __GLIBC_PREREQ(2, 16) +# include <sys/auxv.h> +# endif +# endif + int OPENSSL_issetugid(void) { - if (getuid() != geteuid()) - return 1; - if (getgid() != getegid()) - return 1; - return 0; +# ifdef AT_SECURE + return getauxval(AT_SECURE) != 0; +# else + return getuid() != geteuid() || getgid() != getegid(); +# endif } #endif
Cleanup of memory allocated in nxt_mem_cache_pool_unit_test(). Leak sanitizer is happy now.
@@ -68,6 +68,8 @@ nxt_mem_cache_pool_unit_test(nxt_thread_t *thr, nxt_uint_t runs, nxt_mem_cache_pool_destroy(pool); + nxt_free(blocks); + nxt_thread_time_update(thr); nxt_log_error(NXT_LOG_NOTICE, thr->log, "mem cache pool unit test passed");
Parameter: Allow slightly more error in LH accel
@@ -109,7 +109,7 @@ STRUCT_CONFIG_ITEM("mpfit-stationary-object-up-variance", "How much to weight having the accel direction on tracked objects pointing up", 1e-2, t->stationary_obj_up_variance) STRUCT_CONFIG_ITEM("mpfit-lighthouse-up-variance", - "How much to weight having the accel direction on lighthouses pointing up", 1e-3, t->lh_up_variance) + "How much to weight having the accel direction on lighthouses pointing up", 1e-2, t->lh_up_variance) END_STRUCT_CONFIG_SECTION(MPFITData) static size_t remove_lh_from_meas(survive_optimizer *mpfitctx, int lh) {
isolation2: Fix Makefile to run test manually Author: Xin Zhang Author: Ashwin Agrawal
@@ -55,7 +55,7 @@ install: all gpdiff.pl gpstringsubs.pl installcheck: install ./pg_isolation2_regress --init-file=$(top_builddir)/src/test/regress/init_file --init-file=./init_file_isolation2 --psqldir='$(PSQLDIR)' --inputdir=$(srcdir) --ao-dir=uao --schedule=$(srcdir)/isolation2_schedule -installcheck-resgroup: all gpdiff.pl gpstringsubs.pl prepare_dblink_sql +installcheck-resgroup: install prepare_dblink_sql ./pg_isolation2_regress --init-file=$(top_builddir)/src/test/regress/init_file --init-file=./init_file_resgroup --psqldir='$(PSQLDIR)' --inputdir=$(srcdir) --resgroup-dir=resgroup --dbname=isolation2resgrouptest --schedule=$(srcdir)/isolation2_resgroup_schedule prepare_dblink_sql:
Remove hard coded start/select tests from top down
@@ -164,16 +164,4 @@ void Update_TopDown() { ScriptStart(&actors[hit_actor].events_ptr); } } - - // LOG("[%u, %u] [%u, %u]\n", player.vel.x, player.vel.y, player.pos.x, player.pos.y); - - if (INPUT_SELECT_PRESSED) { - player.pos.x = 32; - player.pos.y = 32; - } - - if (INPUT_START_PRESSED) { - player.pos.x = 512; - player.pos.y = 512; - } }
mackerel: do not pre-read write only registers
@@ -1122,6 +1122,7 @@ register_write_fn r = C.SComment "No MB1 fields present" ), (if prsvmask /= 0 then + (if RT.is_readable r then (C.Ex $ C.Assignment (C.Variable cv_regval) (C.Binary C.BitwiseOr @@ -1129,6 +1130,9 @@ register_write_fn r = (C.Binary C.BitwiseAnd (C.HexConstant prsvmask) (loc_read r)))) + else + C.SComment "No pre-read. Register is write only." + ) else C.SComment "No pre-read of register required" ),
CMSIS-DSP:Correction for issue 218
The input is represented in 1.31 format, which is then downshifted by 8 bits which yields 1.23, and intermediate multiplication yields a 2.46 format. The accumulator maintains full precision of the intermediate multiplication results, - but provides only a 16 guard bits. + and as a consequence has only 16 guard bits. There is no saturation on intermediate additions. If the accumulator overflows it wraps around and distorts the result. In order to avoid overflows completely the input signal must be scaled down by
Add gpperfmon job to pipeline
@@ -464,6 +464,26 @@ jobs: MAKE_TEST_COMMAND: sub_transaction_limit_removal TEST_OS: centos +- name: gpperfmon + plan: + - aggregate: + - get: gpdb_src + params: + submodules: + - gpMgmt/bin/pythonSrc/ext + passed: [compile_gpdb_centos6] + - get: bin_gpdb + resource: bin_gpdb_centos6 + passed: [compile_gpdb_centos6] + trigger: true + - get: centos-gpdb-dev-6 + - task: gpperfmon + file: gpdb_src/concourse/tasks/behave_gpdb.yml + image: centos-gpdb-dev-6 + params: + BEHAVE_TAGS: gpperfmon + BLDWRAP_POSTGRES_CONF_ADDONS: "" + - name: pt-rebuild plan: - aggregate:
gpgme: reduce number of keys
@@ -80,7 +80,7 @@ int main (int argc, char ** argv) init (argc, argv); init_gpgme (); - for (int i = 0; i < 10; i++) + for (int i = 0; i < 3; i++) { // to see how the build server responds test_install_key ();
Fix scheduler crash when iterating supported sizes.
@@ -4362,9 +4362,9 @@ load_ppd(cupsd_printer_t *p) /* I - Printer */ for (media_col_ready = NULL, media_ready = NULL, ready_size = (char *)cupsArrayFirst(ReadyPaperSizes); ready_size; ready_size = (char *)cupsArrayNext(ReadyPaperSizes)) { - for (i = p->pc->num_sizes, pwgsize = p->pc->sizes; i > 0; i --, pwgsize --) + for (i = p->pc->num_sizes, pwgsize = p->pc->sizes; i > 0; i --, pwgsize ++) { - if (!strcasecmp(ready_size, pwgsize->map.ppd)) + if (pwgsize->map.ppd && !strcasecmp(ready_size, pwgsize->map.ppd)) break; }
Typos fixed in CHANGES.md
STAR 2.5.4a 2018/01/23 +====================== ### New features: * Implemented read group ID output as the last column of the Chimeric.out.junction file. * Implemented --readFilesPrefix option for specifying prefix (e.g. directory path) for the file names in --readFilesIn . -* Implemented stanard SAM attrbiute "MC" to output the mate's CIGAR. Add MC to the list of attributes in the --outSAMattribute option. +* Implemented standard SAM attribute "MC" to output the mate's CIGAR. Add MC to the list of attributes in the --outSAMattribute option. * Implemented the ability to input the reads from unmapped SAM/BAM file: --readFilesType SAM SE[PE] for single-end [paired-end] reads to read from the SAM file specified, as usual in --readFilesIn. For BAM files, in addition, specify --readFilesCommand samtools view -h . * Implemented --seedSplitMin option which was previously hardcoded at 12. his will allow mapping of mates shorter than 12nt. * Implemented --outFilterIntronStrands None option to switch off filtering by strand consistency of junctions. @@ -11,7 +12,7 @@ STAR 2.5.4a 2018/01/23 ### Bug fixes: * Fixed a bug in chimeric detection code which sometimes led to uninitialized memory access. The chimeric output may change for a very small number of reads. -* Fixed a problem with --alignEndsProtrude implementation which prevented output of alignments with protruded ends. +* Fixed a problem with --alignEndsProtrude implementation which prevented the output of alignments with protruded ends. * Fixed a bug which set non-primary bit 0x100 in the SAM FLAG for unmapped mates. * Fixed a bug in liftOver command that output an extra field in the GTF file. * Fixed a problem that can arise for very small genomes while using --alignIntronMax 1.
Reinsert end of address check when bin is for target and it is a bin
@@ -56,6 +56,7 @@ static uint32_t initial_addr; static uint32_t current_addr; static bool flash_initialized; static bool initial_addr_set; +static bool flash_type_target_bin; static bool flash_decoder_is_at_end(uint32_t addr, const uint8_t *data, uint32_t size); @@ -65,7 +66,9 @@ flash_decoder_type_t flash_decoder_detect_type(const uint8_t *data, uint32_t siz util_assert(size >= FLASH_DECODER_MIN_SIZE); // Check if this is a daplink image memcpy(&info, data + DAPLINK_INFO_OFFSET, sizeof(info)); - + if(!addr_valid){ //reset until we know the binary type + flash_type_target_bin = false; + } if (DAPLINK_HIC_ID == info.hic_id) { if (DAPLINK_BUILD_KEY_IF == info.build_key) { // Interface update @@ -80,6 +83,9 @@ flash_decoder_type_t flash_decoder_detect_type(const uint8_t *data, uint32_t siz // Check if a valid vector table for the target can be found if (validate_bin_nvic(data)) { + if(!addr_valid){ //binary is a bin type + flash_type_target_bin = true; + } return FLASH_DECODER_TYPE_TARGET; } @@ -342,6 +348,16 @@ static bool flash_decoder_is_at_end(uint32_t addr, const uint8_t *data, uint32_t end_addr = DAPLINK_ROM_IF_START + DAPLINK_ROM_IF_SIZE; break; + case FLASH_DECODER_TYPE_TARGET: + //only if we are sure it is a bin for the target; without check unordered hex files will cause to terminate flashing + if (flash_type_target_bin && g_board_info.target_cfg) { + end_addr = g_board_info.target_cfg->flash_end; + } + else { + return false; + } + break; + default: return false; }
Adjust dynamic sensor cluster bindings for FLS-NB
@@ -1276,7 +1276,11 @@ void DeRestPluginPrivate::checkSensorBindingsForAttributeReporting(Sensor *senso // whitelist by Model ID if (gwReportingEnabled) { - if (deviceSupported) + if (sensor->modelId().startsWith(QLatin1String("FLS-NB"))) + { + // temporary disable, delete bindings and use read attributes + } + else if (deviceSupported) { action = BindingTask::ActionBind; } @@ -2120,13 +2124,79 @@ void DeRestPluginPrivate::bindingToRuleTimerFired() return; } + int idx = 0; + bool found = false; + const deCONZ::Node *node = 0; + while (apsCtrl->getNode(idx, &node) == 0) + { + if (bnd.srcAddress == node->address().ext()) + { + found = true; + break; + } + idx++; + } + + // check if cluster does exist + if (found && node) + { + found = false; + for (const deCONZ::SimpleDescriptor &sd : node->simpleDescriptors()) + { + if (sd.endpoint() != bnd.srcEndpoint) + { + continue; + } + + for (const deCONZ::ZclCluster &cl : sd.inClusters()) + { + if (cl.id() == bnd.clusterId) + { + found = true; + break; + } + } + + for (const deCONZ::ZclCluster &cl : sd.outClusters()) + { + if (cl.id() == ILLUMINANCE_MEASUREMENT_CLUSTER_ID && (node->address().ext() & macPrefixMask) == deMacPrefix) + { + continue; // ignore, binding only allowed for server cluster + } + + if (cl.id() == bnd.clusterId) + { + found = true; + break; + } + } + + if (found) + { + break; + } + } + + if (!found) + { + DBG_Printf(DBG_INFO, "remove binding from 0x%016llX cluster 0x%04X due non existing cluster\n", bnd.srcAddress, bnd.clusterId); + BindingTask bindingTask; + bindingTask.state = BindingTask::StateIdle; + bindingTask.action = BindingTask::ActionUnbind; + bindingTask.binding = bnd; + queueBindingTask(bindingTask); + if (!bindingTimer->isActive()) + { + bindingTimer->start(); + } + return; + } + } + // binding table maintenance // check if destination node exist and remove binding if not if (bnd.dstAddrMode == deCONZ::ApsExtAddress) { - bool found = false; - int idx = 0; - const deCONZ::Node *node = 0; while (apsCtrl->getNode(idx, &node) == 0) { if (bnd.dstAddress.ext == node->address().ext())
Use latest ubuntu
@@ -11,14 +11,11 @@ on: jobs: check-headers: runs-on: ubuntu-latest - container: ubuntu:14.04 + container: ubuntu:20.04 steps: - uses: actions/checkout@v2 - name: Install dependencies run: | - sudo apt-get update - sudo apt-get install -y software-properties-common - sudo add-apt-repository ppa:george-edison55/cmake-3.x sudo apt-get update sudo apt-get install -y cmake cmake-data git doxygen python curl rsync - name: Check
Jump to the end of the line when tab-completing, avoid prefix bug
@@ -1234,6 +1234,7 @@ static void finishAutocomplete(const AutocompleteData* data) { provideHint(data->console, data->options); } + processConsoleEnd(data->console); insertInputText(data->console, data->commonPrefix+strlen(data->incompleteWord)); if (justOneOptionLeft) @@ -3247,8 +3248,12 @@ static void processConsoleTab(Console* console) for(s32 i = 0; i < COUNT_OF(Commands); i++) { - bool commandMatches = strncmp(Commands[i].name, input, param-input-1) == 0 || - (Commands[i].alt && strncmp(Commands[i].alt, input, param-input-1) == 0); + s32 commandLen = param-input-1; + bool commandMatches = (strlen(Commands[i].name) == commandLen && + strncmp(Commands[i].name, input, commandLen) == 0) || + (Commands[i].alt && + strlen(Commands[i].name) == commandLen && + strncmp(Commands[i].alt, input, commandLen) == 0); if (commandMatches) {
disable sending of the gateway to attempt to fix internet issues...no luck yet
@@ -202,6 +202,8 @@ void ICACHE_FLASH_ATTR wifi_init() { IP4_ADDR(&ip_config.gw, 0, 0, 0, 0); IP4_ADDR(&ip_config.netmask, 255, 255, 255, 0); wifi_set_ip_info(SOFTAP_IF, &ip_config); + int stupid_gateway = 0; + wifi_softap_set_dhcps_offer_option(OFFER_ROUTER, &stupid_gateway); wifi_softap_dhcps_start(); // setup tcp server
build bug fix
@@ -25,7 +25,7 @@ if lspci | grep -q 'ConnectX-[4,5]'; then export EXTRA_LDFLAGS=-L$PWD/rdma-core/build/lib export PKG_CONFIG_PATH=$PWD/rdma-core/build/lib/pkgconfig elif lspci | grep -q 'ConnectX-3'; then - rm -f dpdk/drivers/net/mlx5/mlx4_custom.h + rm -f dpdk/drivers/net/mlx4/mlx4_custom.h patch -p1 -N -d dpdk/ < build/mlx4_19_11.patch fi make -C dpdk/ config T=x86_64-native-linuxapp-gcc
NimBLE/host: Fix multiple `discard const qualifier` warnings Minor changes in `ble_gattc.c` to remove `discard const qualifier` warnings.
@@ -485,7 +485,7 @@ ble_gattc_dbg_assert_proc_not_inserted(struct ble_gattc_proc *proc) *****************************************************************************/ static void -ble_gattc_log_proc_init(char *name) +ble_gattc_log_proc_init(const char *name) { BLE_HS_LOG(INFO, "GATT procedure initiated: %s", name); } @@ -587,7 +587,7 @@ ble_gattc_log_read_mult(const uint16_t *handles, uint8_t num_handles) static void ble_gattc_log_write(uint16_t att_handle, uint16_t len, int expecting_rsp) { - char *name; + const char *name; if (expecting_rsp) { name = "write; ";
Fix Makefile for Windows The default value of GRADLE is "./gradlew", which is the correct value on Linux. On Windows, it should use gradlew.bat (by calling "gradlew") instead.
.PHONY: default release clean build build-app build-server run dist dist-zip sums test +ifeq ($(OS),Windows_NT) + GRADLE ?= gradlew +else GRADLE ?= ./gradlew +endif APP_BUILD_DIR := app-build DIST := dist
tools dependencies
@@ -67,7 +67,7 @@ RUN cd /tmp && \ RUN cd /tmp/openpilot && \ pip install --no-cache-dir -r opendbc/requirements.txt && \ - pip install --no-cache-dir -r tools/requirements.txt + pip install --no-cache-dir aenum lru-dict pycurl tenacity COPY . /tmp/openpilot/panda RUN rm -rf /tmp/openpilot/panda/.git
Add :h default peg class, as well as ad \v to whitespace.
that should make it easier to write more complex patterns." ~@{:d (range "09") :a (range "az" "AZ") - :s (set " \t\r\n\0\f") + :s (set " \t\r\n\0\f\v") :w (range "az" "AZ" "09") + :h (range "09" "af") :S (if-not :s 1) :W (if-not :w 1) :A (if-not :a 1) :D (if-not :d 1) + :H (if-not :h 1) :d+ (some :d) :a+ (some :a) :s+ (some :s) :w+ (some :w) + :h+ (some :h) :d* (any :d) :a* (any :a) :w* (any :w) - :s* (any :s)}) + :s* (any :s) + :h* (any :h)}) ### ###
Fix sam4s_nand.c:152:3: error: this 'while' clause does not guard... [-Werror=misleading-indentation]
@@ -149,7 +149,10 @@ static int nand_wait_ready(struct sam_nandcs_s *priv) /* The ready/busy (R/nB) signal of the NAND Flash */ - while (!sam_gpioread(priv->rb)); + while (!sam_gpioread(priv->rb)) + { + } + WRITE_COMMAND8(&priv->raw, COMMAND_STATUS); /* Issue command */
Limit assertion to debug mode
@@ -20,6 +20,7 @@ Object Deallocation void fiobj_dealloc(fiobj_s *obj) { if (!obj) return; +#if DEBUG if (OBJ2HEAD(obj).ref == 0) { fprintf(stderr, "ERROR: attempting to free an object that isn't a fiobj or already " @@ -27,6 +28,7 @@ void fiobj_dealloc(fiobj_s *obj) { (void *)obj); kill(0, SIGABRT); } +#endif if (spn_sub(&OBJ2HEAD(obj).ref, 1)) return; OBJ2HEAD(obj).vtable->free(obj);
Allow clean exit even if transfer fails
@@ -176,6 +176,7 @@ static void handle_transfer(struct libusb_transfer *transfer) { if (transfer->status != LIBUSB_TRANSFER_COMPLETED) { SV_ERROR(SURVIVE_ERROR_HARWARE_FAULT, "Transfer problem %s %d with %s", libusb_error_name(transfer->status), transfer->status, iface->hname); + iface->ctx = 0; return; }
h2o_url_normalize_path: ealry return if path is "/"
@@ -124,7 +124,7 @@ h2o_iovec_t h2o_url_normalize_path(h2o_mem_pool_t *pool, const char *path, size_ *query_at = SIZE_MAX; *norm_indexes = NULL; - if (len == 0) { + if (len == 0 || (len == 1 && path[0] == '/')) { ret = h2o_iovec_init("/", 1); return ret; }
IOD of GAL and Beidou are on 10 bits
@@ -80,7 +80,7 @@ definitions: SSR is used to indicate a change in the SSR generating configuration - iod: - type: u8 + type: u16 desc: Issue of broadcast ephemeris data - radial: type: s32
[mod_nss] update session ticket NSS devel comment Update: NSS developer explains: "The way that we currently operate is to tie the session key encryption to the server public key. Which only works if you have an RSA key configured"
* Copyright 2001-2004 The Apache Software Foundation */ /* - * WARNING: EXPERIMENTAL code sketch; mod_nss is INCOMPLETE and UNTESTED - * * NSS docs: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSS * * NSS documentation is seriously lacking and man pages exist only for apps; * PK11SymKey *masterSecret in ssl3CipherSpec in ssl3State in sslSessionID * is private in lib/ssl/ssl3con.c * - * XXX: due to limitations, consider disabling session tickets in mod_nss + * Update: NSS developer explains: + * "The way that we currently operate is to tie the session key encryption to + * the server public key. Which only works if you have an RSA key configured" + * https://bugzilla.mozilla.org/show_bug.cgi?id=1673254 * * not implemented: * - session ticket rotation (see comments above)
SOVERSION bump to version 2.25.3
@@ -66,7 +66,7 @@ set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_ # set version of the library set(LIBYANG_MAJOR_SOVERSION 2) set(LIBYANG_MINOR_SOVERSION 25) -set(LIBYANG_MICRO_SOVERSION 2) +set(LIBYANG_MICRO_SOVERSION 3) set(LIBYANG_SOVERSION_FULL ${LIBYANG_MAJOR_SOVERSION}.${LIBYANG_MINOR_SOVERSION}.${LIBYANG_MICRO_SOVERSION}) set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_SOVERSION})
makefile fix for lua lib
@@ -47,7 +47,8 @@ LINUX_LIBS= \ $(GTK_LIBS) \ `sdl2-config --static-libs` \ -L$(3RD_PARTY)/wren-0.1.0/lib \ - -L$(3RD_PARTY)/sdl-gpu/build/linux + -L$(3RD_PARTY)/sdl-gpu/build/linux \ + -L$(3RD_PARTY)/lua-5.3.1/src LINUX64_LIBS= \ $(GTK_LIBS) \ @@ -74,7 +75,7 @@ LINUX_LINKER_LTO_FLAGS= \ -lGL LINUX_LINKER_FLAGS= \ - -llua5.3 \ + -llua \ -lwren \ -ldl \ -lm \ @@ -364,6 +365,7 @@ chip-lto-pro: WREN_A=$(3RD_PARTY)/wren-0.1.0/lib/libwren.a SDLGPU_A=$(3RD_PARTY)/sdl-gpu/build/linux/libsdlgpu.a +LUA_A=$(3RD_PARTY)/lua-5.3.1/src/liblua.a $(WREN_A): make static -C $(3RD_PARTY)/wren-0.1.0/ @@ -371,7 +373,10 @@ $(WREN_A): $(SDLGPU_A): make -C $(3RD_PARTY)/sdl-gpu/build/linux/ -linux: $(WREN_A) $(SDLGPU_A) +$(LUA_A): + make linux -C $(3RD_PARTY)/lua-5.3.1/ + +linux: $(WREN_A) $(SDLGPU_A) $(LUA_A) $(CC) $(LINUX_INCLUDES) $(SOURCES) $(SYSTEM) $(LPEG_SRC) $(GIF_SRC) $(SOURCES_EXT) $(TIC80_SRC) $(OPT) $(INCLUDES) $(LINUX_LIBS) $(LINUX_LINKER_FLAGS) -o $(BIN_NAME) linux-pro:
crypto-ipsecmb: bump to intel-ipsec-mb version 0.53 This patch bumps the engine's intel-ipsec-mb version from 0.52 to 0.53, to avail performance improvement brought by the library. Type: feature
# See the License for the specific language governing permissions and # limitations under the License. -ipsec-mb_version := 0.52 +ipsec-mb_version := 0.53 ipsec-mb_tarball := v$(ipsec-mb_version).tar.gz ipsec-mb_tarball_md5sum_0.49 := 3a2bee86f25f6c8ed720da5b4b8d4297 ipsec-mb_tarball_md5sum_0.52 := 11ecfa6db4dc0c4ca6e5c616c141ac46 +ipsec-mb_tarball_md5sum_0.53 := e9b3507590efd1c23321518612b644cd ipsec-mb_tarball_md5sum := $(ipsec-mb_tarball_md5sum_$(ipsec-mb_version)) ipsec-mb_tarball_strip_dirs := 1 ipsec-mb_depends := nasm @@ -29,7 +30,7 @@ define ipsec-mb_build_cmds SHARED=n \ PREFIX=$(ipsec-mb_install_dir) \ NASM=$(ipsec-mb_install_dir)/bin/nasm \ - EXTRA_CFLAGS=-g > $(ipsec-mb_build_log) + EXTRA_CFLAGS="-g -msse4.2" > $(ipsec-mb_build_log) endef define ipsec-mb_install_cmds
esp_system: Place ipc_task semaphores on DRAM For CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL < 92, the ipc_task semaphores were allocated on SPIRAM rather than internal RAM SemaphoreHandle_t has a size of 92, thus the failure
#if !defined(CONFIG_FREERTOS_UNICORE) || defined(CONFIG_APPTRACE_GCOV_ENABLE) +static DRAM_ATTR StaticSemaphore_t s_ipc_mutex_buffer[portNUM_PROCESSORS]; +static DRAM_ATTR StaticSemaphore_t s_ipc_sem_buffer[portNUM_PROCESSORS]; +static DRAM_ATTR StaticSemaphore_t s_ipc_ack_buffer[portNUM_PROCESSORS]; + static TaskHandle_t s_ipc_task_handle[portNUM_PROCESSORS]; static SemaphoreHandle_t s_ipc_mutex[portNUM_PROCESSORS]; // This mutex is used as a global lock for esp_ipc_* APIs static SemaphoreHandle_t s_ipc_sem[portNUM_PROCESSORS]; // Two semaphores used to wake each of ipc tasks @@ -104,9 +108,9 @@ static void esp_ipc_init(void) for (int i = 0; i < portNUM_PROCESSORS; ++i) { snprintf(task_name, sizeof(task_name), "ipc%d", i); - s_ipc_mutex[i] = xSemaphoreCreateMutex(); - s_ipc_ack[i] = xSemaphoreCreateBinary(); - s_ipc_sem[i] = xSemaphoreCreateBinary(); + s_ipc_mutex[i] = xSemaphoreCreateMutexStatic(&s_ipc_mutex_buffer[i]); + s_ipc_ack[i] = xSemaphoreCreateBinaryStatic(&s_ipc_ack_buffer[i]); + s_ipc_sem[i] = xSemaphoreCreateBinaryStatic(&s_ipc_sem_buffer[i]); portBASE_TYPE res = xTaskCreatePinnedToCore(ipc_task, task_name, CONFIG_ESP_IPC_TASK_STACK_SIZE, (void*) i, configMAX_PRIORITIES - 1, &s_ipc_task_handle[i], i); assert(res == pdTRUE);
Fix Coverity integer overflow The assert added cannot ever fail because (current & 0xFFFF) != 0 from the while loop and the trailing zero bit count therefore cannot be as large as 32.
@@ -586,6 +586,7 @@ static int recode_wnaf(struct smvt_control *control, int32_t delta = odd & mask; assert(position >= 0); + assert(pos < 32); /* can't fail since current & 0xFFFF != 0 */ if (odd & (1 << (table_bits + 1))) delta -= (1 << (table_bits + 1)); current -= delta * (1 << pos);
get rid of strdupa
#include <stdbool.h> #include <sys/stat.h> #ifdef __APPLE__ -#define strdupa strdup #include <libgen.h> #else #include <stdio_ext.h> @@ -533,14 +532,9 @@ int main(int argc, char *argv[]) { int auswahl; -char *eigenname = NULL; -char *eigenpfadname = NULL; char *potname = NULL; char *pmkname = NULL; -eigenpfadname = strdupa(argv[0]); -eigenname = basename(eigenpfadname); - setbuf(stdout, NULL); while ((auswahl = getopt(argc, argv, "p:P:hv")) != -1) { @@ -555,15 +549,15 @@ while ((auswahl = getopt(argc, argv, "p:P:hv")) != -1) break; case 'h': - usage(eigenname); + usage(basename(argv[0])); break; case 'v': - version(eigenname); + version(basename(argv[0])); break; case '?': - usageerror(eigenname); + usageerror(basename(argv[0])); break; } }
esp32/README.md: Fix typo readme.
@@ -64,7 +64,7 @@ the following commands on (at least) Linux: $ export PATH=$PATH:$HOME/esp/crosstool-NG/builds/xtensa-esp32-elf/bin -You cam put this command in your `.profile` or `.bash_login`. +You can put this command in your `.profile` or `.bash_login`. You then need to set the `ESPIDF` environment/makefile variable to point to the root of the ESP-IDF repository. You can set the variable in your PATH,
Docs: Fixed typo in several
@@ -3025,7 +3025,7 @@ entry choice will update till next manual reconfiguration. \end{itemize} \emph{Note 1}: Activated \texttt{KeySupport}, \texttt{OpenUsbKbDxe}, or similar driver is required - for key handling to work. On sevaral types of firmware, it is not possible to get all the key functions. + for key handling to work. On several types of firmware, it is not possible to get all the key functions. \emph{Note 2}: In addition to \texttt{OPT} OpenCore supports \texttt{Escape} key to display picker when \texttt{ShowPicker} is disabled. This key exists for the \texttt{Apple} picker mode and for
Docs: Updated Apple Models README
@@ -26,7 +26,7 @@ for generic models and `BridgeOSUpdateCustomer.pkg` for T2 models (the entire re is available at [mesu.apple.com](https://mesu.apple.com/assets/bridgeos/com_apple_bridgeOSIPSW/com_apple_bridgeOSIPSW.xml)) To use them do as follows: -1. Visit suitable update catalogue by filling the OS versions (e.g. [this](https://swscan.apple.com/content/catalogs/others/index-10.16seed-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz) one for 11.0 beta). +1. Visit suitable update catalogue by filling the OS versions (e.g. [this](https://swscan.apple.com/content/catalogs/others/index-10.16seed-10.16-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog.gz) one for macOS 11 beta). 2. Download most recent `FirmwareUpdate.pkg` and `BridgeOSUpdateCustomer.pkg`. 3. Extract `scap` files from `FirmwareUpdate.pkg` files and use them as is. 4. Extract `/usr/standalone/firmware/bridgeOSCustomer.bundle/Contents/Resources/UpdateBundle.zip`
BugID:18057088: Use CON for CoAP notify and resonse
@@ -218,7 +218,7 @@ int CoAPServerMultiCast_send(CoAPContext *context, NetworkAddr *remote, const ch CoAPMessage_init(&message); - CoAPMessageType_set(&message, COAP_MESSAGE_TYPE_NON); + CoAPMessageType_set(&message, COAP_MESSAGE_TYPE_CON); CoAPMessageCode_set(&message, COAP_MSG_CODE_POST); CoAPMessageId_set(&message, CoAPMessageId_gen(context)); tokenlen = CoAPServerToken_get(token); @@ -251,7 +251,7 @@ int CoAPServerResp_send(CoAPContext *context, NetworkAddr *remote, unsigned char } CoAPMessage_init(&response); - CoAPMessageType_set(&response, COAP_MESSAGE_TYPE_NON); + CoAPMessageType_set(&response, COAP_MESSAGE_TYPE_CON); CoAPMessageCode_set(&response, COAP_MSG_CODE_205_CONTENT); CoAPMessageId_set(&response, request->header.msgid); CoAPMessageToken_set(&response, request->token, request->header.tokenlen);
Add link to new reference.
@@ -64,6 +64,8 @@ Lily is a very young language and the community is still growing. ## Resources +* [Reference](https://Fascinatedbox.github.com/lily/core/module.core.html) + * [Try it in your browser](https://FascinatedBox.github.com/lily-site/sandbox.html) * [Syntax Tutorial](https://FascinatedBox.github.com/lily-site/tutorial.html)
Fix bad capitalization in doc reference
@@ -174,7 +174,7 @@ abstract class GenericFIRBlock[D, U, EO, EI, B<:Data, T<:Data:Ring] } // DOC include end: GenericFIRBlock chisel -// DOC include start: TLGenericFIRBLock chisel +// DOC include start: TLGenericFIRBlock chisel class TLGenericFIRBlock[T<:Data:Ring] ( val genIn: T,
ledc: Update LEDC programming guide Add source clock in timer config Add fade end callback and ledc_fade_stop usage Explain ledc_fade_mode_t difference and limitation
@@ -445,7 +445,6 @@ TEST_CASE("LEDC fade stop test", "[ledc]") const ledc_mode_t test_speed_mode = TEST_SPEED_MODE; fade_setup(); - // Overwrite the last fade with new fade int64_t fade_start, fade_stop; int time_ms = 0; fade_start = esp_timer_get_time(); @@ -453,14 +452,19 @@ TEST_CASE("LEDC fade stop test", "[ledc]") TEST_ESP_OK(ledc_fade_start(test_speed_mode, LEDC_CHANNEL_0, LEDC_FADE_NO_WAIT)); // Add some delay before stopping the fade vTaskDelay(127 / portTICK_RATE_MS); - uint32_t duty_at_stop = ledc_get_duty(test_speed_mode, LEDC_CHANNEL_0); + // Get duty value right before stopping the fade + uint32_t duty_before_stop = ledc_get_duty(test_speed_mode, LEDC_CHANNEL_0); TEST_ESP_OK(ledc_fade_stop(test_speed_mode, LEDC_CHANNEL_0)); fade_stop = esp_timer_get_time(); time_ms = (fade_stop - fade_start) / 1000; TEST_ASSERT_TRUE(fabs(time_ms - 127) < 20); + // Get duty value after fade_stop returns (give at least one cycle for the duty set in fade_stop to take effective) + uint32_t duty_after_stop = ledc_get_duty(test_speed_mode, LEDC_CHANNEL_0); + TEST_ASSERT_INT32_WITHIN(4, duty_before_stop, duty_after_stop); // 4 is the scale for one step in the last fade vTaskDelay(300 / portTICK_RATE_MS); - TEST_ASSERT_EQUAL_INT32(duty_at_stop, ledc_get_duty(test_speed_mode, LEDC_CHANNEL_0)); - TEST_ASSERT_NOT_EQUAL(4000, duty_at_stop); + // Duty should not change any more after ledc_fade_stop returns + TEST_ASSERT_EQUAL_INT32(duty_after_stop, ledc_get_duty(test_speed_mode, LEDC_CHANNEL_0)); + TEST_ASSERT_NOT_EQUAL(4000, duty_after_stop); //deinitialize fade service ledc_fade_func_uninstall();
engine: validate connection event thread is not null
@@ -616,10 +616,12 @@ int flb_engine_start(struct flb_config *config) */ u_conn = (struct flb_upstream_conn *) event; th = u_conn->thread; + if (th) { flb_trace("[engine] resuming thread=%p", th); flb_thread_resume(th); } } + } /* Cleanup functions associated to events and timers */ if (config->is_running == FLB_TRUE) {
Add tests for the limited Unicode code point range
@@ -107,9 +107,50 @@ static int test_standard_methods(void) return 0; } +/********************************************************************** + * + * Tests of the Unicode code point range + * + ***/ + +static int test_unicode(const unsigned char *univ, size_t len, int expected) +{ + const unsigned char *end = univ + len; + int ok = 1; + + for (; univ < end; univ += 4) { + if (!TEST_int_eq(ASN1_mbstring_copy(NULL, univ, 4, MBSTRING_UNIV, + B_ASN1_UTF8STRING), + expected)) + ok = 0; + } + return ok; +} + +static int test_unicode_range(void) +{ + const unsigned char univ_ok[] = "\0\0\0\0" + "\0\0\xd7\xff" + "\0\0\xe0\x00" + "\0\x10\xff\xff"; + const unsigned char univ_bad[] = "\0\0\xd8\x00" + "\0\0\xdf\xff" + "\0\x11\x00\x00" + "\x80\x00\x00\x00" + "\xff\xff\xff\xff"; + int ok = 1; + + if (!test_unicode(univ_ok, sizeof univ_ok - 1, V_ASN1_UTF8STRING)) + ok = 0; + if (!test_unicode(univ_bad, sizeof univ_bad - 1, -1)) + ok = 0; + return ok; +} + int setup_tests(void) { ADD_TEST(test_tbl_standard); ADD_TEST(test_standard_methods); + ADD_TEST(test_unicode_range); return 1; }
inertial_updates: Update flags doc for orientation
@@ -102,10 +102,8 @@ definitions: - 0-2: desc: INS Navigation mode values: - - 0: None - - 1: INS only (Dead reckoning) - - 2: INS with GNSS - - 2: INS with GNSS Attitude + - 0: Invalid + - 1: Valid - MSG_ORIENT_EULER: id: 0x0221 @@ -153,10 +151,8 @@ definitions: - 0-2: desc: INS Navigation mode values: - - 0: None - - 1: INS only (Dead reckoning) - - 2: INS with valid GNSS - - 3: INS with GNSS Attitude + - 0: Invalid + - 1: Valid - MSG_ANGULAR_RATE: id: 0x0222 short_desc: Vehicle Body Frame instantaneous angular rates @@ -194,7 +190,5 @@ definitions: - 0-2: desc: INS Navigation mode values: - - 0: None - - 1: INS only (Dead reckoning) - - 2: INS with valid GNSS - - 3: INS with GNSS Attitude + - 0: Invalid + - 1: Valid
[update][bsp][stm32] drv_gpio.c
@@ -203,17 +203,17 @@ static const struct pin_index pins[] = __STM32_PIN(173, K, 13), __STM32_PIN(174, K, 14), __STM32_PIN(175, K, 15), -#endif -#endif -#endif -#endif -#endif -#endif -#endif -#endif -#endif -#endif -#endif +#endif /* defined(GPIOK) */ +#endif /* defined(GPIOJ) */ +#endif /* defined(GPIOI) */ +#endif /* defined(GPIOH) */ +#endif /* defined(GPIOG) */ +#endif /* defined(GPIOF) */ +#endif /* defined(GPIOE) */ +#endif /* defined(GPIOD) */ +#endif /* defined(GPIOC) */ +#endif /* defined(GPIOB) */ +#endif /* defined(GPIOA) */ }; static const struct pin_irq_map pin_irq_map[] =
mesh: Move Device UUID log to bt_mesh_prov_enable() In some cases the application might only initialize its UUID after calling bt_mesh_init(), e.g. in the case of deriving the UUID from the identity address. To avoid confusing logs, only print the UUID when actually enabling one of the provisioing bearers.
#include "syscfg/syscfg.h" #define BT_DBG_ENABLED (MYNEWT_VAL(BLE_MESH_DEBUG)) #include "host/ble_hs_log.h" +#include "host/ble_uuid.h" #include "adv.h" #include "prov.h" @@ -137,6 +138,15 @@ int bt_mesh_prov_enable(bt_mesh_prov_bearer_t bearers) return -EALREADY; } + if (MYNEWT_VAL(BLE_MESH_DEBUG)) { + char uuid_buf[BLE_UUID_STR_LEN]; + const struct bt_mesh_prov *prov = bt_mesh_prov_get(); + ble_uuid_t *uuid = BLE_UUID128_DECLARE(); + + memcpy(BLE_UUID128(uuid)->value, prov->uuid, 16); + BT_INFO("Device UUID: %s", ble_uuid_to_str(uuid, uuid_buf)); + } + if (IS_ENABLED(CONFIG_BT_MESH_PB_ADV) && (bearers & BT_MESH_PROV_ADV)) { /* Make sure we're scanning for provisioning inviations */
elemi: Tune displayport EQ with ps8815 Tune compensate for channel loss up to 10dB. BRANCH=firmware-volteer-13672.B-main TEST=Attached USBC to HDMI dongle. i2ctrace to make sure the EQ is 10dB.
@@ -228,6 +228,14 @@ static void kb_backlight_disable(void) } DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, kb_backlight_disable, HOOK_PRIO_DEFAULT); +__override void board_ps8xxx_tcpc_init(int port) +{ + /* b/189587527: Set Displayport EQ loss up to 10dB */ + tcpc_addr_write(port, PS8751_I2C_ADDR1_P1_FLAGS, + PS8815_REG_DP_EQ_SETTING, + PS8815_DPEQ_LOSS_UP_10DB << PS8815_REG_DP_EQ_COMP_SHIFT); +} + /* * USB3 DB mux configuration - the top level mux still needs to be set to the * virtual_usb_mux_driver so the AP gets notified of mux changes and updates
fixing yaml syntax
@@ -2,7 +2,7 @@ name: Web App Release on: release: - [published] + types: [published] env: BUILD_TYPE: MinSizeRel @@ -12,10 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Emscripten - - uses: mymindstorm/setup-emsdk@v7 + uses: mymindstorm/setup-emsdk@v7 - name: Checkout - - uses: actions/checkout@v2 + uses: actions/checkout@v2 with: submodules: recursive fetch-depth: 0
.ci/travis-ci: use latest Docker image After updating Go and going to Rust toolchain 1.44.0.
+# Copyright 2019 Shift Cryptosecurity AG +# Copyright 2020 Shift Crypto AG +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + #!/bin/bash set -e set -x -CONTAINER=shiftcrypto/firmware_v2:15 +CONTAINER=shiftcrypto/firmware_v2:16 if [ "$1" == "pull" ] ; then docker pull "$CONTAINER"
LwIP: fix timeout handle logic in sys_arch_sem_wait() Currently, sem_tickwait() sets errno to ETIMEOUT when the timeout occurs. After the timeout of sem_tickwait(), we can get the errno by using get_errno(). This patch just adopts the previous timeout handle logic. Conflicts: os/net/lwip/sys/arch/sys_arch.c
@@ -451,22 +451,21 @@ u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) } status = OK; } else { - while ((status = sem_tickwait(sem, clock_systimer(), MSEC2TICK(timeout))) != OK) { + while (sem_tickwait(sem, clock_systimer(), MSEC2TICK(timeout)) != OK) { /* Handle the special case where the semaphore wait was * awakened by the receipt of a signal. * Restart If signal is EINTR else break if ETIMEDOUT */ - if (status == -ETIMEDOUT) { - break; + status = get_errno(); + if (status == ECANCELED) { + return SYS_ARCH_CANCELED; + } else if (status == ETIMEDOUT) { + return SYS_ARCH_TIMEOUT; } else { /* calculate remaining timeout */ timeout -= TICK2MSEC(clock_systimer() - start); } } - - } - if (status == -ETIMEDOUT) { - return SYS_ARCH_TIMEOUT; } systime_t end = clock_systimer();
util/config_option_check: Update language for COIL BRANCH=none TEST=none
@@ -66,11 +66,11 @@ ALLOWLIST_CONFIGS = ['CONFIG_ZTEST'] def obtain_current_config_options(): """Obtains current config options from include/config.h. - Scans through the master config file defined in CONFIG_FILE for all CONFIG_* + Scans through the main config file defined in CONFIG_FILE for all CONFIG_* options. Returns: - config_options: A list of all the config options in the master CONFIG_FILE. + config_options: A list of all the config options in the main CONFIG_FILE. """ config_options = [] @@ -148,11 +148,11 @@ def print_missing_config_options(hunks, config_options): Args: hunks: A list of Hunk objects which represent the hunks from the git diff output. - config_options: A list of all the config options in the master CONFIG_FILE. + config_options: A list of all the config options in the main CONFIG_FILE. Returns: missing_config_option: A boolean indicating if any CONFIG_* options - are missing from the master CONFIG_FILE in this commit or if any CONFIG_* + are missing from the main CONFIG_FILE in this commit or if any CONFIG_* options removed are no longer being used in the repo. """ missing_config_option = False
add name variable to upload-to-pskreporter.c
#include <sys/socket.h> #include <arpa/inet.h> +const char name[] = "report.pskreporter.info"; const char soft[] = "Red Pitaya FT8 TRX"; int32_t read_int(char **pointer, int32_t *value) @@ -122,7 +123,7 @@ int main(int argc, char *argv[]) return EXIT_FAILURE; } - if((host = gethostbyname("report.pskreporter.info")) == NULL) + if((host = gethostbyname(name)) == NULL) { fprintf(stderr, "cannot find remote host address\n"); return EXIT_FAILURE;
zephyr: Add CONFIG_EXTPOWER_GPIO to the shim This is not strictly necessary, but shows up as a delta from the existing volteer config. So let's define it. BRANCH=none TEST=build zephyr and see that extpower_gpio.c is still built
@@ -143,6 +143,8 @@ enum battery_type { #endif #ifdef CONFIG_PLATFORM_EC_EXTPOWER_GPIO +#define CONFIG_EXTPOWER_GPIO + /* This always needs to be defined for this option to work */ #define CONFIG_EXTPOWER #endif
diff BUGFIX reversing create and delete operations They should be reverted as whole subtrees, there can be no nested different operations. Fixes
@@ -1673,10 +1673,16 @@ lyd_diff_reverse_all(const struct lyd_node *src_diff, struct lyd_node **diff) case LYD_DIFF_OP_CREATE: /* reverse create to delete */ LY_CHECK_GOTO(ret = lyd_diff_change_op(elem, LYD_DIFF_OP_DELETE), cleanup); + + /* the whole subtree was reversed, there can be no other operation there */ + LYD_TREE_DFS_continue = 1; break; case LYD_DIFF_OP_DELETE: /* reverse delete to create */ LY_CHECK_GOTO(ret = lyd_diff_change_op(elem, LYD_DIFF_OP_CREATE), cleanup); + + /* the whole subtree was reversed, there can be no other operation there */ + LYD_TREE_DFS_continue = 1; break; case LYD_DIFF_OP_REPLACE: switch (elem->schema->nodetype) {
[LOGIC CHANGE] Use `getaddrinfo` and `freeAddrinfo` based on internal library
@@ -95,15 +95,10 @@ newTransport() DBG(NULL); return NULL; } - if (!g_fn.getaddrinfo) goto out; - t->getaddrinfo = g_fn.getaddrinfo; + t->getaddrinfo = scope_getaddrinfo; t->origGetaddrinfo = t->getaddrinfo; // store a copy return t; - - out: - scope_free(t); - return NULL; } /* @@ -676,7 +671,7 @@ freeAddressList(transport_t *trans) { if (!trans || !trans->net.addr.list) return; - freeaddrinfo(trans->net.addr.list); + scope_freeaddrinfo(trans->net.addr.list); trans->net.addr.entries = 0; trans->net.addr.list = NULL; trans->net.addr.next = NULL;
BugID:18621523: modify the dependency component mbedtls to imbedtls. The mbedtls component name in security directory is renamed to imbedtls.
@@ -21,5 +21,5 @@ $(NAME)_COMPONENTS += itls else $(info FEATURE_SUPPORT_ITLS != y, so using normal TLS) $(NAME)_SOURCES += HAL_TLS_mbedtls.c HAL_DTLS_mbedtls.c -$(NAME)_COMPONENTS += mbedtls +$(NAME)_COMPONENTS += imbedtls endif
[MVE] clean-up of loading constant offset vectors We don't need to load them with an mve intrinsic, but instead can just pass them in where needed.
@@ -90,18 +90,14 @@ __STATIC_INLINE arm_status arm_mat_trans_32bit_2x2_mve( uint32_t * pDataSrc, uint32_t * pDataDest) { - uint32x4_t vecOffs; - uint32x4_t vecIn; - - static const uint32_t stridesTr22[4] = { 0, 2, 1, 3 }; + static const uint32x4_t vecOffs = { 0, 2, 1, 3 }; /* * * | 0 1 | => | 0 2 | * | 2 3 | | 1 3 | * */ - vecOffs = vldrwq_u32((uint32_t const *)stridesTr22); - vecIn = vldrwq_u32((uint32_t const *)pDataSrc); + uint32x4_t vecIn = vldrwq_u32((uint32_t const *)pDataSrc); vstrwq_scatter_shifted_offset_u32(pDataDest, vecOffs, vecIn); return (ARM_MATH_SUCCESS); @@ -111,10 +107,8 @@ __STATIC_INLINE arm_status arm_mat_trans_32bit_3x3_mve( uint32_t * pDataSrc, uint32_t * pDataDest) { - static const uint32_t stridesTr33_1[4] = { 0, 3, 6, 1}; - static const uint32_t stridesTr33_2[4] = { 4, 7, 2, 5}; - uint32x4_t vecOffs1, vecOffs2; - uint32x4_t vecIn1, vecIn2; + const uint32x4_t vecOffs1 = { 0, 3, 6, 1}; + const uint32x4_t vecOffs2 = { 4, 7, 2, 5}; /* * * | 0 1 2 | | 0 3 6 | 4 x 32 flattened version | 0 3 6 1 | @@ -122,11 +116,8 @@ __STATIC_INLINE arm_status arm_mat_trans_32bit_3x3_mve( * | 6 7 8 | | 2 5 8 | (row major) | 8 . . . | * */ - vecOffs1 = vldrwq_u32((uint32_t const *) stridesTr33_1); - vecOffs2 = vldrwq_u32((uint32_t const *) stridesTr33_2); - - vecIn1 = vldrwq_u32((uint32_t const *) pDataSrc); - vecIn2 = vldrwq_u32((uint32_t const *) &pDataSrc[4]); + uint32x4_t vecIn1 = vldrwq_u32((uint32_t const *) pDataSrc); + uint32x4_t vecIn2 = vldrwq_u32((uint32_t const *) &pDataSrc[4]); vstrwq_scatter_shifted_offset_u32(pDataDest, vecOffs1, vecIn1); vstrwq_scatter_shifted_offset_u32(pDataDest, vecOffs2, vecIn2);
Readable bitmask for entity type.
@@ -351,6 +351,8 @@ typedef enum SDID_ESC } e_key_id; +// Caskey, Damon V. +// 2013 typedef enum { /* @@ -359,18 +361,18 @@ typedef enum 2013-12-27 */ - TYPE_NONE, - TYPE_PLAYER, - TYPE_ENEMY, - TYPE_ITEM = 4, - TYPE_OBSTACLE = 8, - TYPE_STEAMER = 16, - TYPE_SHOT = 32, // 7-1-2005 type to use for player projectiles - TYPE_TRAP = 64, // 7-1-2005 lets face it enemies are going to just let you storm in without setting a trap or two! - TYPE_TEXTBOX = 128, // New textbox type for displaying messages - TYPE_ENDLEVEL = 256, // New endlevel type that ends the level when touched - TYPE_NPC = 512, // A character can be an ally or enemy. - TYPE_PANEL = 1024, // Fake panel, scroll with screen using model speed + TYPE_NONE = (1 << 0), + TYPE_PLAYER = (1 << 1), + TYPE_ENEMY = (1 << 2), + TYPE_ITEM = (1 << 3), + TYPE_OBSTACLE = (1 << 4), + TYPE_STEAMER = (1 << 5), + TYPE_SHOT = (1 << 6), // 7-1-2005 type to use for player projectiles + TYPE_TRAP = (1 << 7), // 7-1-2005 lets face it enemies are going to just let you storm in without setting a trap or two! + TYPE_TEXTBOX = (1 << 8), // New textbox type for displaying messages + TYPE_ENDLEVEL = (1 << 9), // New endlevel type that ends the level when touched + TYPE_NPC = (1 << 10), // A character can be an ally or enemy. + TYPE_PANEL = (1 << 11), // Fake panel, scroll with screen using model speed TYPE_MAX = TYPE_PANEL, // For openbor constant check and type hack (i.e., custom hostile and candamage) TYPE_RESERVED = 0x40000000 // should not use as a type } e_entity_type;
change sort method to display lastest transactions firstly.
@@ -1337,7 +1337,7 @@ static int bi_compar(const void *l, const void *r) { xdag_time_t tl = (*(struct block_internal **)l)->time, tr = (*(struct block_internal **)r)->time; - return (tl > tr) - (tl < tr); + return (tl < tr) - (tl > tr); } //TODO comments static const char* xdag_get_block_state_info(struct block_internal *block)
libcupsfilters: In PPD generator use same priority order for the different attributes which list color spaces as CUPS does.
@@ -2325,8 +2325,8 @@ ppdCreateFromIPP(char *buffer, /* I - Filename buffer */ * ColorModel... */ - if ((attr = ippFindAttribute(response, "pwg-raster-document-type-supported", IPP_TAG_KEYWORD)) == NULL) if ((attr = ippFindAttribute(response, "urf-supported", IPP_TAG_KEYWORD)) == NULL) + if ((attr = ippFindAttribute(response, "pwg-raster-document-type-supported", IPP_TAG_KEYWORD)) == NULL) if ((attr = ippFindAttribute(response, "print-color-mode-supported", IPP_TAG_KEYWORD)) == NULL) attr = ippFindAttribute(response, "output-mode-supported", IPP_TAG_KEYWORD);
android: fix for api level detector from version
@@ -530,12 +530,20 @@ namespace "config" do #If user has mentioned version under android, then select that particular api level. if $app_config["android"]["version"] apilevel = AndroidTools.get_api_level $app_config["android"]["version"] + if(!apilevel) + apilevel = AndroidTools.get_api_level ($app_config["android"]["version"] + ".0") + end + if(!apilevel) + apilevel = AndroidTools.get_api_level ($app_config["android"]["version"][0...-2]) + end if(apilevel) $androidplatform = AndroidTools.get_platform apilevel $found_api_level = apilevel + puts "Found api level #{apilevel}" else puts "No Android platform found of version #{$app_config['android']['version']}. Picking the latest one Android #{AndroidTools.get_market_version $found_api_level} available in machine" end + exit 1 end end
oops... no need to review headers
@@ -163,7 +163,6 @@ static FIOBJ headers2str(http_s *h) { fiobj_each1(h->private_data.out_headers, 0, write_header, &w); fiobj_str_write(w.dest, "\r\n", 2); - fprintf(stderr, "Sending:\n%s\n", fiobj_obj2cstr(w.dest).data); return w.dest; }
build: correct the libgit2 pkg-config filename
@@ -116,7 +116,7 @@ else $LDFLAGS << " " + "-L#{Dir.pwd}/deps/winhttp" $LIBS << " -lwinhttp -lcrypt32 -lrpcrt4 -lole32 -lz -lssh2" else - pcfile = File.join(LIBGIT2_DIR, "build", "libgit2.pc") + pcfile = File.join(LIBGIT2_DIR, "build", "git2.pc") $LDFLAGS << " " + `pkg-config --libs --static #{pcfile}`.strip end end
parallel-libs/scotch: fix src url
@@ -24,7 +24,7 @@ Summary: Graph, mesh and hypergraph partitioning library using MPI License: CeCILL-C Group: %{PROJ_NAME}/parallel-libs URL: http://www.labri.fr/perso/pelegrin/scotch/ -Source0: http://gforge.inria.fr/frs/download.php/file/34618/%{base_pname}_%{version}.tar.gz +Source0: http://gforge.inria.fr/frs/download.php/file/37622/scotch_6.0.6.tar.gz Source1: scotch-Makefile.%{compiler_family}.inc.in Source2: scotch-rpmlintrc Patch0: scotch-6.0.4-destdir.patch
Fix flashing sprites when music is playing with colors disabled
@@ -82,8 +82,10 @@ void vbl_update() { void lcd_update() { if (LYC_REG == 0x0) { SHOW_SPRITES; - LYC_REG = WY_REG; + if (WY_REG != MENU_CLOSED_Y) { + LYC_REG = WY_REG; + } } else if (hide_sprites_under_win) { HIDE_SPRITES; LYC_REG = 0x0;
Refactor trailer offset functions Update each function to calculate the offset based on a previous function offset, so that if one has to be changed not all functions have to be updated.
@@ -164,12 +164,6 @@ boot_trailer_sz(uint8_t min_write_sz) BOOT_MAGIC_SZ; } -static uint32_t -boot_magic_off(const struct flash_area *fap) -{ - return fap->fa_size - BOOT_MAGIC_SZ; -} - int boot_status_entries(int image_index, const struct flash_area *fap) { @@ -196,36 +190,41 @@ boot_status_off(const struct flash_area *fap) return fap->fa_size - off_from_end; } -uint32_t -boot_swap_info_off(const struct flash_area *fap) +static inline uint32_t +boot_magic_off(const struct flash_area *fap) { - return fap->fa_size - BOOT_MAGIC_SZ - BOOT_MAX_ALIGN * 3; + return fap->fa_size - BOOT_MAGIC_SZ; +} + +static inline uint32_t +boot_image_ok_off(const struct flash_area *fap) +{ + return boot_magic_off(fap) - BOOT_MAX_ALIGN; } -static uint32_t +static inline uint32_t boot_copy_done_off(const struct flash_area *fap) { - return fap->fa_size - BOOT_MAGIC_SZ - BOOT_MAX_ALIGN * 2; + return boot_image_ok_off(fap) - BOOT_MAX_ALIGN; } -static uint32_t -boot_image_ok_off(const struct flash_area *fap) +uint32_t +boot_swap_info_off(const struct flash_area *fap) { - return fap->fa_size - BOOT_MAGIC_SZ - BOOT_MAX_ALIGN; + return boot_copy_done_off(fap) - BOOT_MAX_ALIGN; } -static uint32_t +static inline uint32_t boot_swap_size_off(const struct flash_area *fap) { - return fap->fa_size - BOOT_MAGIC_SZ - BOOT_MAX_ALIGN * 4; + return boot_swap_info_off(fap) - BOOT_MAX_ALIGN; } #ifdef MCUBOOT_ENC_IMAGES -static uint32_t +static inline uint32_t boot_enc_key_off(const struct flash_area *fap, uint8_t slot) { - return fap->fa_size - BOOT_MAGIC_SZ - BOOT_MAX_ALIGN * 4 - - ((slot + 1) * BOOT_ENC_KEY_SIZE); + return boot_swap_size_off(fap) - ((slot + 1) * BOOT_ENC_KEY_SIZE); } #endif
Fixed type on param
#endif STATIC_CONFIG_ITEM(SERIALIZE_SOLVE, "serialize-lh-mpfit", 's', "Serialize MPFIT formulization", 0) -STATIC_CONFIG_ITEM(USE_JACOBIAN_FUNCTION, "use-jacobian-function", 'b', - "If set to false, a slower numerical approximation of the jacobian is used", 1) +STATIC_CONFIG_ITEM(USE_JACOBIAN_FUNCTION, "use-jacobian-function", 'i', + "If set to false, a slower numerical approximation of the jacobian is used. Set to -1 to see debug output", 1) STATIC_CONFIG_ITEM(SENSOR_VARIANCE_PER_SEC, "sensor-variance-per-sec", 'f', "Variance per second to add to the sensor input -- discounts older data", 0.0) STATIC_CONFIG_ITEM(SENSOR_VARIANCE, "sensor-variance", 'f', "Base variance for each sensor input", 1.0e-4) @@ -579,7 +579,6 @@ static FLT handle_optimizer_results(survive_optimizer *mpfitctx, int res, const FLT v[] = {axis_count, lh_count, sensor_ct, rtn}; SV_DATA_LOG("mpfit_confidence_measures", v, 4); - SurviveVelocity *vel = survive_optimizer_get_velocity(mpfitctx); FLT scale = so->sensor_scale; SV_VERBOSE( worldEstablished ? 110 : 100,
Add http connection pass check
@@ -8832,7 +8832,8 @@ run_test "TLS1.3: minimal feature sets - openssl" \ -c "=> parse certificate verify" \ -c "<= parse certificate verify" \ -c "mbedtls_ssl_tls13_process_certificate_verify() returned 0" \ - -c "<= parse finished message" + -c "<= parse finished message" \ + -c "HTTP/1.0 200 ok" requires_gnutls_tls1_3 requires_gnutls_next_no_ticket @@ -8863,7 +8864,8 @@ run_test "TLS1.3: minimal feature sets - gnutls" \ -c "=> parse certificate verify" \ -c "<= parse certificate verify" \ -c "mbedtls_ssl_tls13_process_certificate_verify() returned 0" \ - -c "<= parse finished message" + -c "<= parse finished message" \ + -c "HTTP/1.0 200 OK" # Test heap memory usage after handshake
Fix Error: chip/lpc54_emc.c:421:12: error: explicitly assigning value of variable of type 'uint32_t' (aka 'unsigned int') to itself
@@ -418,7 +418,6 @@ void lpc54_emc_sdram_initialize( /* Set the right mode setting value. */ data = *(volatile uint32_t *)addr; - data = data; } if (config->dyndev) @@ -445,7 +444,6 @@ void lpc54_emc_sdram_initialize( /* Set the right mode setting value. */ data = *(volatile uint32_t *)addr; - data = data; } } @@ -468,6 +466,8 @@ void lpc54_emc_sdram_initialize( regval |= EMC_DYNCONFIG_B; putreg32(regval, regaddr); } + + UNUSED(data); } #endif /* CONFIG_LPC54_EMC_DYNAMIC */
adding comments and usage examples for SettingMonitor
@@ -12,17 +12,37 @@ the :mod:`sbp.client.util.settingmonitor` module contains functionality to monitor SBP_MSG_SETTINGS_READ_RESP messages for desired values """ +from sbp.settings import SBP_MSG_SETTINGS_READ_RESP + import time + class SettingMonitor(object): + """Class to monitor Settings via SBP messages + + Parameters + ---------- + None + + """ + def __init__(self): self.settings = [] def capture_setting(self, sbp_msg, **metadata): + """Callback to extract and store setting values from + SBP_MSG_SETTINGS_READ_RESP + + Messages of any type other than SBP_MSG_SETTINGS_READ_RESP are ignored + """ + if sbp_msg.msg_type == SBP_MSG_SETTINGS_READ_RESP: section, setting, value = sbp_msg.payload.split('\0')[:3] self.settings.append((section, setting, value)) def wait_for_setting_value(self, section, setting, value, wait_time=5.0): + """Function to wait wait_time seconds to see a + SBP_MSG_SETTINGS_READ_RESP message with a user-specified value + """ expire = time.time() + wait_time ok = False while not ok and time.time() < expire: @@ -36,5 +56,72 @@ class SettingMonitor(object): return ok def clear(self): + """Clear all settings""" self.settings[:] = [] + + +if __name__ == "__main__": + from sbp.client import Handler, Framer + from sbp.client.drivers.network_drivers import TCPDriver + from sbp.settings import MsgSettingsWrite, MsgSettingsReadReq + import argparse + + def print_setting(sbp_msg, **metadata): + print sbp_msg + + def main(): + parser = argparse.ArgumentParser( + description="Swift Navigation SBP Setting Monitor example.") + parser.add_argument( + "-H", + "--host", + required=True, + help="specify the host address.") + parser.add_argument( + "-p", + "--port", + default=55556, + help="specify the port to use.") + args = parser.parse_args() + + monitor = SettingMonitor() + + with TCPDriver(args.host, args.port) as driver: + with Handler(Framer(driver.read, driver.write, verbose=True)) as link: + driver.flush() + time.sleep(2) + + # Capture setting messages + link.add_callback(monitor.capture_setting, + SBP_MSG_SETTINGS_READ_RESP) + + link.add_callback(print_setting, SBP_MSG_SETTINGS_READ_RESP) + + # Disable spectrum analyzer + link(MsgSettingsWrite(setting='%s\0%s\0%s\0' % ( + 'system_monitor', 'spectrum_analyzer', 'False'))) + + # Request the value of the system_monitor:spectrum_analyzer setting + link(MsgSettingsReadReq(setting='%s\0%s\0' % ( + 'system_monitor', 'spectrum_analyzer'))) + + # Wait up to 5 seconds to see the setting we want + specan_off = monitor.wait_for_setting_value( + 'system_monitor', 'spectrum_analyzer', 'False') + + assert(specan_off == True) + print "Spectrum analyzer turned off!" + + # Request the value of the system_monitor:spectrum_analyzer setting + link(MsgSettingsReadReq(setting='%s\0%s\0' % ( + 'system_monitor', 'spectrum_analyzer'))) + + # Wait up to 5 seconds to see the setting we (don't) want + specan_off = monitor.wait_for_setting_value( + 'system_monitor', 'spectrum_analyzer', 'True') + + assert(specan_off == False) + print "Spectrum analyzer still off!" + + main()
restored codemirror
^- marl ;= ;title: Urbit - A personal server ;meta(name "viewport", content "width=device-width, initial-scale=1"); -:: ;link(type "text/css", rel "stylesheet", href "//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.min.css"); + ;link(type "text/css", rel "stylesheet", href "//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.min.css"); ;* ?. nopack.dbg :_ ~ ;link(type "text/css", rel "stylesheet", href "/===/web/pack/css/codemirror-fonts-bootstrap-tree.css"); ;script(type "text/javascript", src "{(cdnjs "react/0.14.6/react-dom")}"); ;script(type "text/javascript", src "{(cdnjs "flux/2.1.1/Flux")}"); ;* (turn ~(tap by extras) |=({@ a/@t} ;script(type "text/javascript"):"{(trip a)}")) -:: ;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.js"); + ;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/codemirror/4.3.0/codemirror.js"); :: ;script(type "text/javascript", src "//cdnjs.cloudflare.com/ajax/libs/". :: "codemirror/4.3.0/mode/markdown/markdown.min.js"); ;* ?. nopack.dbg
Remove useless includes from decoder.c
#include "decoder.h" #include <libavformat/avformat.h> -#include <libavutil/time.h> -#include <SDL2/SDL_events.h> -#include <unistd.h> #include "events.h" -#include "recorder.h" #include "video_buffer.h" -#include "util/buffer_util.h" #include "util/log.h" void
boards: imxrt1060-evk: Fix iperf performance for netnsh Summary: Before: iperf -s 94Mbps, iperf -c 0Mbps After : iperf -s 94Mbps, iperf -c 93Mbps Impact: Should be none Testing: Tested with iperf and telnet
@@ -23,10 +23,12 @@ CONFIG_ETH0_PHY_KSZ8081=y CONFIG_FS_PROCFS=y CONFIG_IDLETHREAD_STACKSIZE=2048 CONFIG_IMXRT_ENET=y +CONFIG_IMXRT_ENET_NRXBUFFERS=64 +CONFIG_IMXRT_ENET_NTXBUFFERS=64 CONFIG_IMXRT_LPUART1=y CONFIG_INIT_ENTRYPOINT="nsh_main" CONFIG_INTELHEX_BINARY=y -CONFIG_IOB_NBUFFERS=128 +CONFIG_IOB_BUFSIZE=1514 CONFIG_LIBC_HOSTNAME="i.MXRT1060 EVK" CONFIG_LPUART1_SERIAL_CONSOLE=y CONFIG_NET=y
Update release notes Added placeholders for new API functions, general changes, new definitions and list of contributing authors
@@ -96,3 +96,68 @@ for the thread-safe API. Some additional points regarding the new **PDA** option - `hydcoeffs.c` computes values of the matrix coefficients (derived from link head losses and their gradients) used by the hydraulic solver. - `hydstatus.c` checks for status changes in valves and pumps as requested by the hydraulic solver. - The Multiple Minimum Degree re-ordering algorithm appears in a new file named `genmmd.c`. This is 1990's legacy code that is readily available on the web and can be found in several linear equation solver libraries. + +## General changes + - Read and write demand categories names + +## New API functions +|Function|Description| +|--|--| +|`ENaddlink`| | +|`ENaddnode`| | +|`ENgetcurvetype`| | +|`ENgetdemandmodel`|| +|`ENsetdemandmodel`|| +|`ENsetflowunits`|| +|`ENaddcontrol`|| +|`ENsetdemandpattern`|| +|`ENgetrule`|| +|`ENsetrulepriority`|| +|`ENgetpremise`|| +|`ENsetpremise`|| +|`ENsetpremiseindex`|| +|`ENsetpremisestatus`|| +|`ENsetpremisevalue`|| +|`ENgettrueaction`|| +|`ENsettrueaction`|| +|`ENgetfalseaction`|| +|`ENsetfalseaction`|| +|`ENgetruleID`|| +|`ENinit`|| +|`ENsetheadcurveindex`|| +|`ENsetlinktype`|| +|`ENaddnode`|| +|`ENaddlink`|| +|`ENdeletelink`|| +|`ENdeletenode`|| + + +## API Extensions (additional definitions) +### Link value types: +- `EN_EFFICIENCY` +- `EN_HEADCURVE` +- `EN_EFFICIENCYCURVE` +- `EN_PRICEPATTERN` +- `EN_STATE` +- `EN_CONST_POWER` +- `EN_SPEED` +### Count types: + - `EN_RULECOUNT` +### Head loss formula: + - `EN_HW` + - `EN_DW` + - `EN_CM` +### Misc. options: + - `EN_HEADERROR` + - `EN_FLOWCHANGE` + - `EN_DEMANDDEFPAT` +### Curve types: + - `EN_V_CURVE` + - `EN_P_CURVE` + - `EN_E_CURVE` + - `EN_H_CURVE` + - `EN_G_CURVE` + +## Authors contributing to this release: + - List item +
hslua-module-system: bump upper bound for hslua-packaging
@@ -36,7 +36,7 @@ common common-options default-language: Haskell2010 build-depends: base >= 4.8 && < 5 , hslua-core >= 2.0 && < 2.1 - , hslua-packaging >= 2.0 && < 2.1 + , hslua-packaging >= 2.0 && < 2.2 , text >= 1.0 && < 1.3 default-extensions: LambdaCase , OverloadedStrings
Changes to CDC example code: auto flush welcome message at connection event provide information to the user if the terminal did not set DTR
@@ -137,6 +137,7 @@ void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts) { // print initial message when connected tud_cdc_write_str("\r\nTinyUSB CDC MSC device example\r\n"); + tud_cdc_write_flush(); } } @@ -144,6 +145,16 @@ void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts) void tud_cdc_rx_cb(uint8_t itf) { (void) itf; + uint8_t const line_state = tud_cdc_get_line_state(); + + // Provide information that terminal did not set DTR bit + if( !(line_state & 0x01) ) + { + tud_cdc_write_str("\r\nTinyUSB example: Your terminal did not set DTR bit\r\n"); + tud_cdc_write_flush(); + // Clear rx fifo since we do not read the data + tud_cdc_read_flush(); + } } //--------------------------------------------------------------------+
Throw an error if duplicates found in PY_SRCS
@@ -252,6 +252,11 @@ def onpy_srcs(unit, *args): unit.onresource_files([x for name, path in files2res for x in ('DEST', name, path)]) if pys: + pys_seen = set() + pys_dups = {m for _, m in pys if (m in pys_seen or pys_seen.add(m))} + if pys_dups: + ymake.report_configure_error('Duplicate(s) is found in the PY_SRCS macro: {}'.format(pys_dups)) + res = [] for path, mod in pys:
Fix TweakDB assertion on SetFlat (affected only debug builds)
@@ -714,7 +714,7 @@ int32_t FlatPool::GetOrCreate(const RED4ext::CStackType& acStackType, HashType a int32_t existingTDBOffset = Get(acStackType, aHash); if (existingTDBOffset != -1) { - assert(existingTDBOffset == aTDBOffset); + assert((aTDBOffset == -1) || (existingTDBOffset == aTDBOffset)); return existingTDBOffset; }
release: last update
# 0.8.25 Release -This release did not happen yet but hopefully will happen today. - -- guid: 472392e0-cc4f-4826-a0a9-2764d90c5f89 -- author: Markus Raab -- pubDate: Sun, 18 Nov 2018 14:30:34 +0100 -- shortDesc: faster storage and lookup - We are proud to release Elektra 0.8.25. ## What is Elektra? @@ -22,6 +15,13 @@ For a small demo see here: You can also read the news [on our website](https://www.libelektra.org/news/0.8.25-release) +## Metadata + +- guid: 472392e0-cc4f-4826-a0a9-2764d90c5f89 +- author: Markus Raab +- pubDate: Sun, 18 Nov 2018 21:24:34 +0100 +- shortDesc: faster storage and lookup + ## Highlight
Accidentally added/removed lines to vplanet.h.
#define REARTH 6.3781e6 // Equatorial; Prsa et al. 2016 #define RJUP 7.1492e7 // Equatorial; Prsa et al. 2016 #define MJUP 1.898130e27 // Prsa et al. 2016 -#define RNEP 2.4764e7 // Neptune's Radius (ref?) -#define MNEP 1.0244e26 // Neptune's Mass (ref?) -#define RHOEARTH 5515 // Earth's Density -#define eEARTH 0.016710219 // Earth's Eccentricity #define YEARDAY 365.25 // Days per year (more precise??) #define MSAT 5.6851e26 // Saturns' Mass (ref?) #define DEGRAD 0.017453292519444445 // Degrees per radian
Win32 d3d11 make sure we don't update hud unnecessarily
@@ -13,7 +13,15 @@ static Present oPresent = NULL; long __stdcall hkPresent11(IDXGISwapChain* pSwapChain, UINT SyncInterval, UINT Flags) { +#ifdef _MSC_VER + static auto addr = _ReturnAddress(); + if(addr == _ReturnAddress()){ +#else + static auto addr = __builtin_return_address(0); + if(addr == __builtin_return_address(0)){ +#endif d3d_run(); + } return oPresent(pSwapChain, SyncInterval, Flags); }
Return state/lastupdated: "none", when it is not set
@@ -1484,6 +1484,13 @@ bool DeRestPluginPrivate::sensorToMap(const Sensor *sensor, QVariantMap &map, bo if (strncmp(rid.suffix, "state/", 6) == 0) { const char *key = item->descriptor().suffix + 6; + + if (rid.suffix == RStateLastUpdated && !item->lastSet().isValid()) + { + state[key] = QLatin1String("none"); + continue; + } + state[key] = item->toVariant(); } }