message
stringlengths
6
474
diff
stringlengths
8
5.22k
arch/risc-v/src/mpfs/hardware: fix alignment in comment
@@ -393,7 +393,7 @@ struct mpfs_req_s { struct usbdev_req_s req; /* Standard USB request */ struct mpfs_req_s *flink; /* Supports a singly linked list */ - uint16_t inflight; /* Number of TX bytes tansmitting or + uint16_t inflight; /* Number of TX bytes transmitting or * number of RX bytes we are waiting */ };
fix incorrect macro luv_state close
@@ -97,7 +97,7 @@ LUALIB_API luv_ctx_t* luv_context(lua_State* L); These are exposed for extensions built with luv This allows luv to be used in multithreaded applications. */ -#define luv_state(L) (luv_context(L)->L) +#define luv_state(S) (luv_context(S)->L) /* All libuv callbacks will lua_call directly from this root...
BugID:17646749:[mqtt] add payload null check for publish
@@ -1501,15 +1501,18 @@ static int iotx_mc_handle_recv_SUBACK(iotx_mc_client_t *c) /* call callback function to notify that SUBSCRIBE is successful */ iotx_mqtt_event_msg_t msg; msg.msg = (void *)(uintptr_t)mypacketid; - if (fail_flag == 1) { + if (fail_flag == 1) + { msg.event_type = IOTX_MQTT_EVENT_SUBCRIBE_NACK; - }...
FIPS: remove algorithms that are not being validated. Several MACs and one KDF are included in the FIPS provider with the property "fips=yes" set but are not listed as being part of the OpenSSL validation. This removes them from the FIPS provider.
@@ -367,12 +367,6 @@ static const OSSL_ALGORITHM fips_digests[] = { { "SHA3-256", "provider=fips,fips=yes", sha3_256_functions }, { "SHA3-384", "provider=fips,fips=yes", sha3_384_functions }, { "SHA3-512", "provider=fips,fips=yes", sha3_512_functions }, - /* - * KECCAK-KMAC-128 and KECCAK-KMAC-256 as hashes are mostly ...
ZCLDB: Use enum8 for hue motion sensor sensitivity (as reported by the device)
</attribute> </attribute-set> <attribute-set id="0x0030" description="Philips Specific" mfcode="0x100b"> - <attribute id="0x0030" name="Sensitivity" description="Hue motion sensor related SML001" type="u8" default="0" access="rw" required="o" mfcode="0x100b"></attribute> + <attribute id="0x0030" name="Sensitivity" desc...
main: simplify _main_repath
@@ -63,7 +63,6 @@ _main_repath(c3_c* pax_c) c3_c* fas_c; c3_c* dir_c; c3_w len_w; - c3_i wit_i; if ( 0 != (rel_c = realpath(pax_c, 0)) ) { return rel_c; @@ -75,16 +74,16 @@ _main_repath(c3_c* pax_c) } c3_assert(u3_unix_safe(fas_c + 1)); *fas_c = 0; - if ( 0 == (dir_c = realpath(pax_c, 0)) ) { + dir_c = realpath(pax_c, ...
tests/motors: Pass test without control data.
@@ -189,8 +189,8 @@ try: # Controlled case. control_time, control_data = get_data(build_dir / "control.txt") plot_control_data(control_time, control_data, build_dir) - except IndexError: - # Open loop case, no control data to parse. + except (IndexError, FileNotFoundError): + # Open loop case or servo only, no control ...
docs: fix typo in tasty-lua example
@@ -32,7 +32,7 @@ local tasty = require 'tasty' local assert = tasty.assert return { - tasty.group 'examples { + tasty.group 'examples' { tasty.test('multiplication', function() assert.are_equal(6, 2 * 3) end), tasty.test('truthyness', function() assert.is_truthy(0) end), tasty.group 'nil' {
Trondo: Free up flash space Trondo is nearly out of space on ToT, so remove the PRL debug strings in order to free up some bytes. BRANCH=None TEST=make -j buildall
/* Optional features */ #define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands while in dev. */ +/* Reduce flash usage */ +#define CONFIG_USB_PD_DEBUG_LEVEL 2 + #define CONFIG_POWER_BUTTON #undef CONFIG_UART_TX_BUF_SIZE
linux_raspberrypi_4.19: Update to 4.19.32 The rpi-4.19.y branch has been rebased and the commit specified for 4.19.30 no longer exists upstream.
FILESEXTRAPATHS_prepend := "${THISDIR}/linux-raspberrypi:" -LINUX_VERSION ?= "4.19.30" +LINUX_VERSION ?= "4.19.32" LINUX_RPI_BRANCH ?= "rpi-4.19.y" -SRCREV = "3c468fc8191d276e3e9efd976a0ff71271f3fc51" +SRCREV = "d65a0f76d3adcf86a6f5c614c68edb3aeb3b8590" SRC_URI = " \ git://github.com/raspberrypi/linux.git;protocol=git;...
Update: transbot.py: make use of numeric representation capability in perception, initially for location, color next
@@ -70,7 +70,7 @@ def pick_with_feedback(pickobj=None): if y_real_temp < closer_to_gripper: #visual feedback forward() elif y_real_temp > closer_to_gripper: - left() + #left() forward() forward() forward() @@ -177,11 +177,8 @@ def TransbotPerceiveAt(obj, trans, rot): def TransbotPerceiveVisual(obj, screenX, screenY, tr...
Bump version number in documentation script
@@ -6,8 +6,8 @@ jazzy \ --author "Data Theorem" \ --author_url https://datatheorem.github.io \ --github_url https://github.com/datatheorem/TrustKit \ - --github-file-prefix https://github.com/datatheorem/TrustKit/tree/1.4.0 \ - --module-version 1.4.0 \ + --github-file-prefix https://github.com/datatheorem/TrustKit/tree...
Add detect_proto container to azure execution.
@@ -91,6 +91,11 @@ stages: parameters: name: tls containerName: tls + + - template: test/testContainers/azure/it-test-job-template.yml + parameters: + name: detect_proto + containerName: detect_proto - stage: publish displayName: Publish artifacts to S3 dependsOn:
fix min tx_level and dac_level values
#define ADDR_DAC1 0x61 /* MCP4725 address 1 */ volatile uint32_t *rx_freq[3], *rx_rate, *tx_freq, *alex, *tx_mux, *dac_freq, *dac_mux; -volatile uint16_t *rx_cntr, *tx_cntr, *tx_level, *dac_cntr, *dac_level, *adc_cntr; +volatile uint16_t *rx_cntr, *tx_cntr, *dac_cntr, *adc_cntr; +volatile int16_t *tx_level, *dac_level;...
Remove code under GPDB_91_MERGE_FIXME in ATPrepAddColumn(). There are many tests which flow through this code path specifically in alter_table.sql. Nothing exploded with the removal of the same and gpcheckcat flagged nothing means its fine to delete the same.
@@ -6893,76 +6893,6 @@ ATPrepAddColumn(List **wqueue, Relation rel, bool recurse, bool recursing, elog(ERROR, "unexpected ALTER TABLE subtype %d in ADD COLUMN command", cmd->subtype); } - - /* GPDB_91_MERGE_FIXME: I don't know if this is still needed or not. - * Perhaps not, because of the new way OIDs are dispatched. ...
Adapt versions and dependency names for centos7
Name: oidc-agent -Version: 1.2.0 +Version: 2.1.3 Release: 1 Summary: Commandline tool for obtaining OpenID Connect Access tokens on the commandline Group: Misc @@ -9,12 +9,14 @@ Source0: oidc-agent.tar BuildRequires: libcurl-devel >= 7.29 BuildRequires: libsodium-devel >= 1.0.11 -BuildRequires: libmicrohttpd-devel >= 0...
odissey: implement pooler client_max limit
@@ -85,6 +85,13 @@ od_pooler(void *arg) od_error(&env->log, NULL, "accept failed"); continue; } + if (pooler->client_pool.count >= env->scheme.client_max) { + od_log(&pooler->od->log, client_io, + "C: pooler client_max reached (%d), closing connection", + env->scheme.client_max); + mm_close(client_io); + continue; + } ...
Make safe_addition_for_params() as a static function
@@ -368,7 +368,9 @@ parser_context_init(parser_context_t *context) return status; } -SIXELSTATUS safe_addition_for_params(parser_context_t *context, unsigned char *p){ +static SIXELSTATUS +safe_addition_for_params(parser_context_t *context, unsigned char *p) +{ int x; x = *p - '0'; /* 0 <= x <= 9 */
Added PORT variable for 'make connect-router'
PREFIX ?= fd00::1/64 +ifdef PORT + TUNSLIP6_ARGS = -s $(PORT) $(PREFIX) +else + TUNSLIP6_ARGS = $(PREFIX) +endif + connect-router: $(TUNSLIP6) - sudo $(TUNSLIP6) $(PREFIX) + sudo $(TUNSLIP6) $(TUNSLIP6_ARGS) connect-router-cooja: $(TUNSLIP6) sudo $(TUNSLIP6) -a 127.0.0.1 $(PREFIX)
Add more portable PATH limit for node loader.
@@ -2068,18 +2068,24 @@ void node_loader_impl_thread(void * data) /* TODO: Reimplement from here to ... */ /* TODO: Make this trick more portable... */ - char exe_path_str[PATH_MAX]; + #if defined(WIN32) || defined(_WIN32) + const size_t path_max_length = MAX_PATH; + #else + const size_t path_max_length = PATH_MAX; + #...
tests: tabify
@@ -22,6 +22,7 @@ do grep -Eq "^\\[${META}\\]$" "$META_FILE" succeed_if "Metadata $META of plugin $PLUGIN not present in METADATA.ini" done + USED_BY=$(awk "/usedby\\/plugin= ([^\\n]*)${PLUGIN}( |\\n)/" RS= "$META_FILE") USED_BY_META=$(echo "$USED_BY" | grep -Eo "^\\[.*\\]$")
Update Amazon FreeRTOS version in CMake
@@ -5,7 +5,10 @@ if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}") message(FATAL_ERROR "In-source build is not allowed, please use a separate build folder.") endif() -project(amazon-freertos VERSION 1.5) +project(amazon-freertos) +set(PROJECT_VERSION "201906.00") +set(PROJECT_VERSION_MAJOR "201906") +set(PROJECT...
Implementation of operator << on Matrix22 for stream output.
@@ -4076,6 +4076,35 @@ Matrix44<T>::shear (const Shear6<S> &h) // Implementation of stream output //-------------------------------- +template <class T> +std::ostream & +operator << (std::ostream &s, const Matrix22<T> &m) +{ + std::ios_base::fmtflags oldFlags = s.flags(); + int width; + + if (s.flags() & std::ios_base:...
Parallel.ForEachAsync does NOT tolerate exceptions
@@ -233,7 +233,9 @@ public abstract class PoolBase : StratumServer, protected async Task ForEachMinerAsync(Func<StratumConnection, CancellationToken, Task> func, Action<Exception> errorHandler, CancellationToken ct) { - await Guard(()=> Parallel.ForEachAsync(connections, ct, async (kvp, _ct) => + await Parallel.ForEach...
fix undefined reference reallocarray symbol reallocarray not exists in ubuntu 16.04
@@ -496,6 +496,16 @@ static void print_hld_task(struct stack_stat *ss) print_time(tot, sizeof(tot), ss->ls.hld_total_time)); } +static inline void *reallocarray_handwrite(void *ptr, size_t nmemb, size_t size) +{ + size_t total; + if (size == 0 || nmemb > ULONG_MAX / size) + return NULL; + total = nmemb * size; + return...
test_gpdb.py: Fix configure command to run w/ options With `shell=True` in the call to `subprocess.call`, the options to `configure` were ignored. We don't need the shell and its use is generally discouraged.
@@ -55,7 +55,7 @@ def configure(): "--with-python", "--with-libs=/usr/local/gpdb/lib", "--with-includes=/usr/local/gpdb/include", - "--prefix=/usr/local/gpdb"], env=p_env, shell=True, cwd="gpdb_src") + "--prefix=/usr/local/gpdb"], env=p_env, cwd="gpdb_src") def main():
correct duty cycle calculation.
@@ -448,6 +448,9 @@ port_INLINE void activity_synchronize_newSlot() { return; } + ieee154e_vars.radioOnInit=sctimer_readCounter(); + ieee154e_vars.radioOnThisSlot=TRUE; + // if this is the first time I call this function while not synchronized, // switch on the radio in Rx mode if (ieee154e_vars.state!=S_SYNCLISTEN) { ...
Map two-sided-short-edge to DuplexTumble two-sided-short-edge and two-sided-long-edge were both mapped to DuplexNoTumble. DuplexNoTumble should be mapped to the long-edge tumble and short-edge to DuplexTumble.
@@ -401,7 +401,7 @@ void process_cmdline_options() if ((opt2 = find_option("Binding"))) option_set_value(opt2, optset, "ShortEdge"); else - option_set_value(opt, optset, "DuplexNoTumble"); + option_set_value(opt, optset, "DuplexTumble"); } } }
parser json BUGFIX invalid dereference
@@ -1146,7 +1146,7 @@ lydjson_parse_attribute(struct lyd_json_ctx *lydctx, struct lyd_node *attr_node, enum LYJSON_PARSER_STATUS *status_p, struct lyd_node **first_p, struct lyd_node **node_p) { LY_ERR r; - const char *opaq_name; + const char *opaq_name, *mod_name; size_t opaq_name_len; if (!snode && !prefix) { @@ -116...
diff for non-limber computations with CLASS benchmarks
@@ -1084,7 +1084,7 @@ differences at the levels observed are not surprising. %------------------------- %Angpow -\ccl performs non-Limber computations of angular power spectra through the {\tt Angpow} library as detailed in Section \ref{sec:angpow}. The \texttt{Angpow} software was tested against \class and the brute-f...
fix memory leaks in kdbSet
@@ -2430,6 +2430,8 @@ int kdbSet (KDB * handle, KeySet * ks, Key * parentKey) { keyCopy (parentKey, initialParent, KEY_CP_NAME | KEY_CP_VALUE); keyDel (initialParent); + ksDel (backends); + ksDel (setKs); errno = errnosave; return 0;
fs/lustre-client: bump to v.2.10.1
@@ -76,7 +76,7 @@ BuildRequires: kernel-devel = %{centos_kernel} %undefine with_zfs %endif -%{!?version: %global version 2.10.0} +%{!?version: %global version 2.10.1} %{!?kver: %global kver %(uname -r)} %{!?kdir: %global kdir /lib/modules/%{kver}/source} %{!?kobjdir: %global kobjdir %(if [ "%{kdir}" = "/lib/modules/%{k...
Fix for CI compiler error
@@ -53,7 +53,7 @@ namespace pimoroni { //-------------------------------------------------- // Constructors/Destructor //-------------------------------------------------- - Sequence() : size(1), data({Transition()}) {}; + Sequence() : size(1), data{Transition()} {}; }; struct TransitionData {
putting back delay
@@ -638,7 +638,7 @@ TEST_TEAR_DOWN( MQTT_System ) { /* Clean up the MQTT library. */ IotMqtt_Cleanup(); - + vTaskDelay( 100 ); /* Clean up the network stack. */ IotTestNetwork_Cleanup();
[chainmaker][#537]modify function interface
@@ -187,7 +187,7 @@ typedef struct TBoatHlchainamkerTx { * @return * If initinal success, return chainmaker wallet pointer, otherwise return \c NULL. ******************************************************************************/ -BoatHlchainmakerWallet *BoatHlchainmakerWalletInit(const BoatHlchainmakerWalletConfig *co...
add aikon f4 to hex build
[ + { + "name": "aikon_f4", + "configurations": [ + { + "name": "brushed.serial", + "defines": { + "BRUSHED_TARGET": "", + "RX_UNIFIED_SERIAL": "" + } + } + ] + }, { "name": "alienwhoop_v2", "configurations": [
Fix some clay networking issues.
== :: ++ note :: out request $-> $% $: $a :: to %ames - $% {$wont p/sock q/path r/*} :: + $% {$want p/sock q/path r/*} :: == == :: $: $c :: to %clay $% {$info p/@p q/@tas r/nori} :: internal edit :: ++ send-over-ames |= {a/duct b/path c/ship d/{p/@ud q/riff}} - (emit a %pass b %a %wont [our c] [%c %question p.q.d (scot...
Update Pango font description URL in sway.5.scd Along with fixes
@@ -630,7 +630,7 @@ The default colors are: should be used instead. Regardless of whether pango markup is enabled, _font_ should be specified as a pango font description. For more information on pango font descriptions, see - https://developer.gnome.org/pango/stable/pango-Fonts.html#pango-font-description-from-string +...
travis: move icc to earlier in the build It takes a long time to compile so I always have to wait around for it to finish after all the other builds have.
@@ -82,6 +82,22 @@ jobs: - COMPILER_FLAGS=-DSIMDE_NO_SHUFFLE_VECTOR - OPTIMIZATION_FLAGS='' + - name: icc + compiler: icc + env: + - C_COMPILER=icc + - CXX_COMPILER=icpc + - COMPILER_FLAGS='-wd13200 -wd13203' + install: + - source /opt/intel/inteloneapi/compiler/latest/env/vars.sh + addons: + apt: + sources: + - source...
ftp.c: EPSV: deal with a broken server or `pure-ftpd -b`
@@ -816,6 +816,20 @@ static int ftp_do_data_connection_new (gftp_request * request) { if (USE_EPSV) { resp = ftp_send_command (request, "EPSV\r\n", -1, 1, 1); + if (resp == '5') { + // deal with a broken server or pure-ftpd -b + request->logging_function (gftp_logging_error, request, _("* The server is broken!\n")); + ...
Set partition search to auto.
@@ -519,7 +519,7 @@ soft_reset: if (sdcard_is_present()) { // Init the vfs object vfs_fat->blockdev.flags = 0; - sdcard_init_vfs(vfs_fat, 1); + sdcard_init_vfs(vfs_fat, 0); // Try to mount the SD card FRESULT res = f_mount(&vfs_fat->fatfs);
[numerics] fix tlsvar in C++ mode
#ifdef SWIG #define tlsvar - #elif defined(SICONOS_CXXVERSION) && (SICONOS_CXXVERSION >= 201103L) + #elif __cplusplus >= 201103L #define tlsvar thread_local #else #if defined(__GNUC__) || (defined(__ICC) && defined(__linux))
OpenXR uses COUNTOF;
@@ -515,7 +515,7 @@ static bool openxr_init(float supersample, float offset, uint32_t msaa, bool ove { 0, NULL, "vibrate", XR_ACTION_TYPE_VIBRATION_OUTPUT, 2, hands, "Vibrate" } }; - _Static_assert(sizeof(actionInfo) / sizeof(actionInfo[0]) == MAX_ACTIONS, "Unbalanced action table!"); + _Static_assert(COUNTOF(actionInf...
shelter: use SGX_RA_TLS instead ../ra-tls in Makefile
@@ -8,8 +8,8 @@ SGX_DCAP_INC ?= INCDIR ?= DEBUG ?= 0 EXTRA_FLAGS ?= -WOLFSSL_RA_LIBS := ../ra-tls/build/lib/libwolfssl.a -WOLFSSL_RA_LIBS += ../ra-tls/build/lib/libra-challenger.a +WOLFSSL_RA_LIBS := $(SGX_RA_TLS_LIB)/libwolfssl.a +WOLFSSL_RA_LIBS += $(SGX_RA_TLS_LIB)/libra-challenger.a export SGX_RA_TLS_LIB SGX_RA_TLS...
dockerfiles: don't pull from tarball on master build don't pull from tarball on master build
FROM debian:buster-slim as builder - -# Fluent Bit version -ENV FLB_MAJOR 1 -ENV FLB_MINOR 9 -ENV FLB_PATCH 0 -ENV FLB_VERSION 1.9.0 - -ARG FLB_TARBALL=https://github.com/fluent/fluent-bit/archive/v$FLB_VERSION.tar.gz -ENV FLB_SOURCE $FLB_TARBALL RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log /tmp/fluent-...
Don't cast an int * to a size_t * If sizeof(int) != sizeof(size_t) this may not work correctly. Fixes a Coverity issue.
@@ -600,6 +600,7 @@ typedef struct loopargs_st { unsigned char *buf2_malloc; unsigned char *key; unsigned int siglen; + size_t sigsize; #ifndef OPENSSL_NO_RSA RSA *rsa_key[RSA_NUM]; #endif @@ -1185,11 +1186,11 @@ static int EdDSA_sign_loop(void *args) unsigned char *buf = tempargs->buf; EVP_MD_CTX **edctx = tempargs->e...
fix bootstrap process when client cert is used and error map is supported If client cert auth is used, once the error map response has been received, the negotiation is complete Tested-by: Jake Rawsthorne Tested-by: Build Bot
@@ -660,6 +660,9 @@ GT_NEXT_PACKET: status); set_error(LCB_ERR_PROTOCOL_ERROR, "GET_ERRMAP response unexpected", &resp); } + if (settings->keypath) { + completed = !maybe_select_bucket(); + } // Note, there is no explicit state transition here. LIST_MECHS is // pipelined after this request. break;
Fixes wrong include setup for the dependnecy manager lib
add_library(dependency_manager_static STATIC src/dm_activator.c) target_include_directories(dependency_manager_static PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/api> - $<INSTALL_INTERFACE:include/celix/dependency_manager> + $<INSTALL_INTERFACE:include/celix> ) if (APPLE) target_link_libraries(dependency_manager...
libcupsfilters: In pwgtoraster() overspray stretching also fixes rounding errors
@@ -1549,6 +1549,9 @@ static bool outPage(pwgtoraster_doc_t *doc, // // Here we calculate the number of lines/columns after which we need // to repeat one line/column. + // + // This facility also fixes rounding errors which lead to the input + // raster to be a few pixels too small for the output. if (doc->page_size_r...
Modify the tc func name for representing the tested API name
@@ -1086,7 +1086,7 @@ static void tc_libc_pthread_pthread_rwlock_rdlock_wrlock(void) } /** -* @fn :tc_libc_pthread_pthread_rwlock_test_timeout +* @fn :tc_libc_pthread_pthread_rwlock_timedwrlock_timedrdlock * @Description :creates and initializes a new read-write lock object with specified attributes and \ * tries acqui...
Fix use after free bug in get_feautrier_schedule_constraints. Format routine to C99/C++11
@@ -558,20 +558,16 @@ PlutoConstraints *get_feautrier_schedule_constraints_dep(Dep *dep, */ PlutoConstraints *get_feautrier_schedule_constraints(PlutoProg *prog, Stmt **stmts, int nstmts) { - int i, inc, nvar, npar, ndeps; - PlutoConstraints *fcst, *fcst_d; - Dep **deps; - - ndeps = prog->ndeps; - deps = prog->deps; - ...
porting: Fix build error 'OS_ASSERT_CRITICAL();' won't build if assert is defined as 'if () {}'.
@@ -47,7 +47,7 @@ extern "C" { typedef uint32_t os_sr_t; #define OS_ENTER_CRITICAL(_sr) (_sr = ble_npl_hw_enter_critical()) #define OS_EXIT_CRITICAL(_sr) (ble_npl_hw_exit_critical(_sr)) -#define OS_ASSERT_CRITICAL() (assert(ble_npl_hw_is_in_critical())) +#define OS_ASSERT_CRITICAL() assert(ble_npl_hw_is_in_critical()) ...
analysis workflow, add iPhoneOS, AppleTVOS and WatchOS tests.
@@ -58,15 +58,69 @@ jobs: # test_ios: "yes" # config: "no" # make: "no" - - name: Apple iPhone on iOS, arm64 +# - name: Apple iPhone on iOS, arm64 +# os: macos-latest +# AUTOTOOLS_HOST: aarch64-apple-ios +# OPENSSL_HOST: ios64-cross +# IOS_SDK: iPhoneOS +# IOS_CPU: arm64 +# test_ios: "yes" +# config: "no" +# make: "no"...
Camel: Fix incorrect format strings This commit fixes part of issue
@@ -81,10 +81,10 @@ typedef struct /* -- Macros ---------------------------------------------------------------------------------------------------------------------------- */ #define LOG_PARSE(data, message, ...) \ - ELEKTRA_LOG_DEBUG ("%s:%lu:%lu: " message, strrchr (keyString (data->parentKey), '/') + 1, data->line,...
adaptive padding for longer window titles when overlapping with arrow
@@ -978,10 +978,13 @@ drawbar(Monitor *m) if ( TEXTW(c->name) < tabw ) { int mid = ((tabw - (TEXTW(c->name))) / 2); drw_text(drw, x, 0, tabw, bh, mid, c->name, 0); + } else { + if (x < arrowx + tabw){ + drw_text(drw, x, 0, tabw, bh, (lrpad / 2) + (bh / 2), c->name, 0); }else{ drw_text(drw, x, 0, tabw, bh, lrpad / 2, c-...
crazybee: allow ICM20xxx gyros to be used
//#define FPV_PORT GPIOA // GYRO -#define GYRO_TYPE MPU6XXX +#define GYRO_TYPE ICM20602 #define GYRO_SPI_PORT SPI_PORT1 #define GYRO_NSS PIN_A4 #define GYRO_INT PIN_A1 #define GYRO_ID_1 0x68 #define GYRO_ID_2 0x73 #define GYRO_ID_3 0x78 -#define GYRO_ID_4 0x71 +#define GYRO_ID_4 0x98 // RADIO #ifdef RX_FRSKY
use h2o_timeval_subtract
@@ -202,7 +202,7 @@ size_t h2o_context_close_idle_connections(h2o_context_t *ctx, size_t max_connect }; H2O_CONN_LIST_FOREACH(h2o_conn_t * conn, conn_list, { struct timeval now = h2o_gettimeofday(ctx->loop); - if (now.tv_sec - conn->connected_at.tv_sec < min_age) + if (h2o_timeval_subtract(&conn->connected_at, &now) < ...
nix: fixes `shellFor` nix-shell helper
@@ -169,7 +169,7 @@ let # } # shellFor = { name, packages, ... }@attrs: - pkgs.mkShell ({ + pkgsNative.mkShell ({ inputsFrom = packages pkgsLocal; } // builtins.removeAttrs attrs [ "packages" ]); };
system:nsh : Apply CONFIG_NSH_DISABLE_TELNETSTART to nsh_main.c Summary: This commit applies CONFIG_NSH_DISABLE_TELNETSTART to nsh_main.c Impact: None Testing: Tested with sabre-6quad:netknsh (will be updated later)
@@ -127,7 +127,8 @@ int main(int argc, FAR char *argv[]) nsh_initialize(); -#if defined(CONFIG_NSH_TELNET) && !defined(CONFIG_NETINIT_NETLOCAL) +#if defined(CONFIG_NSH_TELNET) && !defined(CONFIG_NSH_DISABLE_TELNETSTART) && \ + !defined(CONFIG_NETINIT_NETLOCAL) /* If the Telnet console is selected as a front-end, then s...
make test values constant
@@ -1787,8 +1787,7 @@ return true; static bool isessidvalid(int essidlen, uint8_t *essid) { static int c; - -static uint8_t foxtrott[4] = { 0xff, 0xff, 0xff, 0xff }; +static const uint8_t foxtrott[4] = { 0xff, 0xff, 0xff, 0xff }; if(essidlen > ESSID_LEN_MAX) return false; if(essidlen == 0) return true;
added known as working GPS devices
@@ -109,6 +109,15 @@ The best high frequency amplifier is a good antenna! | TP-LINK TL-ANT2409 A | panel | +GPS devices +-------------- + +| VENDOR MODEL | TYPE | +| --------------------------- | --------------- | +| NAVILOCK NL-701US | USB | +| JENTRO BT-GPS-8 activepilot | BLUETOOTH | + + Useful scripts -------------...
fix CPU QRMSE with weights fix
@@ -55,7 +55,7 @@ void CalcApproxDersQueriesRange(const TVector<TIndexType>& indices, for (int docId = 0; docId < sampleCount; ++docId) { TDer1Der2& currentDers = bucketDers[indices[docId]]; currentDers.Der1 += (*scratchDers)[docId].Der1; - bucketWeights[indices[docId]] += 1; + bucketWeights[indices[docId]] += weight.e...
Fixes build caused by invalid coltype
@@ -31,19 +31,24 @@ static void produce_column_header(struct csv_metadata *c, void *s, size_t len) { char* column = (char*)s; readstat_variable_t* var = &c->variables[c->columns]; memset(var, 0, sizeof(readstat_variable_t)); - extract_metadata_type_t coltype = column_type(c->json_md, column, c->output_format); - c->is_...
put freq_offset in ack frame.
@@ -399,8 +399,7 @@ void cb_endFrame(PORT_TIMER_WIDTH timestamp) { uint8_t pkt_channel; uint16_t pkt_seqNum; - // todo - //uint8_t freq_offset; + int8_t freq_offset; // turn radio off first radio_rfOff(); @@ -505,12 +504,13 @@ void cb_endFrame(PORT_TIMER_WIDTH timestamp) { // received from SCuM, prepare Ack to send bac...
Update clang-windows.sh from 7.1.0 to 8.0.1. Clang 8.0.1 for Windows is now available from resource
#!/usr/bin/env bash set -euo pipefail -version="${1:-7.1.0}" +version="${1:-8.0.1}" major="${version%%.*}" arcadia="$(cd "$(dirname "${BASH_SOURCE[0]}")"/../../.. && pwd)" @@ -14,7 +14,7 @@ set -x mkdir -p "$tmp" cd "$tmp" -test -e "$exe" || wget "http://releases.llvm.org/${version}/${exe}" +test -e "$exe" || wget "htt...
spi_flash: fix the corruption of ROM after calling bootloader_execute_flash_command The user register, especially dummy related ones, needs to be restored, otherwise the ROM function will not work. Introduced in
@@ -578,6 +578,7 @@ IRAM_ATTR static uint32_t bootloader_flash_execute_command_common( assert(mosi_len <= 32); assert(miso_len <= 32); uint32_t old_ctrl_reg = SPIFLASH.ctrl.val; + uint32_t old_user_reg = SPIFLASH.user.val; #if CONFIG_IDF_TARGET_ESP32 SPIFLASH.ctrl.val = SPI_WP_REG_M; // keep WP high while idle, otherwi...
add support for even/odd check on hic_hal stm32
@@ -170,7 +170,11 @@ int32_t uart_set_configuration(UART_Configuration *config) //Only 8 bit support configuration.DataBits = UART_DATA_BITS_8; + if (uart_handle.Init.Parity == HAL_UART_PARITY_ODD || uart_handle.Init.Parity == HAL_UART_PARITY_EVEN) { + uart_handle.Init.WordLength = UART_WORDLENGTH_9B; + } else { uart_h...
travis-ci: use shiftcrypto/firmware_v2:2
@@ -5,5 +5,5 @@ git remote set-branches --add origin master git fetch docker run -v ${TRAVIS_BUILD_DIR}:/bitbox02-firmware/ \ - -i shiftcrypto/firmware_v2:1 \ + -i shiftcrypto/firmware_v2:2 \ bash -c "make -C /bitbox02-firmware ci"
doc: clarify from review
@@ -16,7 +16,8 @@ encoded within a key name part. - restrict what `keySetBaseName` can accept is against: - easy to use of API: applications with some key names would suddenly fail - hard to use it wrong API: storage plugins that do not pre-process key names properly would fail to build up a KeySet - which would be aga...
svm_queue_timedwait_inline: lock after wait This fixes a typo introduced in
@@ -174,7 +174,7 @@ svm_queue_timedwait_inline (svm_queue_t * q, double timeout) while (q->cursize == cursize && unix_time_now () < max_time) CLIB_PAUSE (); rv = unix_time_now () < max_time ? 0 : ETIMEDOUT; - svm_queue_unlock (q); + svm_queue_lock (q); return rv; } }
[numerics] fix bug with log file for ma57
@@ -6330,6 +6330,8 @@ int NM_LDLT_solve(NumericsMatrix* Ao, double *b, unsigned int nrhs) case NSM_HSL: { LBL_Data * lbl = (LBL_Data *)p->linear_solver_data; + FILE * logfile = fopen("lbl.log", "a"); + lbl->ma57->logfile = logfile; // Solve. for (int irhs=0; irhs <nrhs ; irhs++) { @@ -6339,6 +6341,7 @@ int NM_LDLT_solv...
Update for 1.4 release
@@ -33,8 +33,8 @@ repo.versions: "1.3.0": "mynewt_1_3_0_tag" "1.4.0": "mynewt_1_4_0_tag" - "0-latest": "1.3.0" - "1-latest": "1.3.0" + "0-latest": "1.4.0" + "1-latest": "1.4.0" "0-dev": "0.0.0" # master "0.8-latest": "0.8.0"
HV: Remove some comments for crypto library The code in comments was removed from md_wrap.c, so modify comments to avoid confusion Acked-by: Eddie Dong
@@ -61,17 +61,12 @@ typedef struct { /** Information about the associated message digest. */ const mbedtls_md_info_t *md_info; - /** The digest-specific context. Use array here to avoid dynamic memory - * allocation. The size of the array size is determined by this line - * in md_wrap.c - * void *ctx = mbedtls_calloc(1...
in_tail: fix offset_key
@@ -146,7 +146,7 @@ int flb_tail_pack_line_map(msgpack_sbuffer *mp_sbuf, msgpack_packer *mp_pck, } if (file->config->offset_key != NULL) { append_record_to_map(data, data_size, - file->config->path_key, + file->config->offset_key, flb_sds_len(file->config->offset_key), NULL, 0, file->offset + processed_bytes); }
Added info on connecting keyboard
@@ -11,8 +11,7 @@ Unlike other keyboard firmwares, ZMK Firmware has been built from the ground up their own keyboard configurations, including keymaps, specific hardware details, etc. all outside of the core ZMK Firmware source repository. -In addition to this, most users do not need to install any complicated toolchai...
python build BUGFIX do not use --root when installing without DESTDIR set the --root option removes leading / from prefix even if its value is empty (no DESTDIR set) and the python module is then installed locally.
@@ -22,5 +22,9 @@ if (PYTHON) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/docs/Makefile.in ${CMAKE_CURRENT_SOURCE_DIR}/docs/Makefile) add_custom_target(pyapi ALL COMMAND ${PYTHON} ${SETUP_PY} build -b ${PYAPI_BUILD_DIR} ${DEBUG}) add_custom_target(pyapidoc COMMAND make -f ${CMAKE_CURRENT_SOURCE_DIR}/docs/Makefile html) ...
lovrRandomGeneratorGetState: Improve correctness;
#include <math.h> #include <stdio.h> #include <stdlib.h> +#include <inttypes.h> // Thomas Wang's 64-bit integer hashing function: // https://web.archive.org/web/20110807030012/http://www.cris.com/%7ETtwang/tech/inthash.htm @@ -47,7 +48,7 @@ void lovrRandomGeneratorSetSeed(RandomGenerator* generator, Seed seed) { } void...
compiler-families/llvm-compilers: fix flang src dir name
@@ -92,7 +92,7 @@ ln -s ../../openmp-%{version}.src openmp cd ../.. ln -s llvm-%{version}.src llvm -ln -s flang-flang_20180319 flang +ln -s flang-flang_20180612 flang # Flang code is not ready for -Werror %{__sed} -i -e 's/-Werror/-Wall/g' flang/CMakeLists.txt
csvstorage: reformat and cleanup
@@ -861,12 +861,6 @@ description= to not avoid metakeys with standard system keys, no metakey name mu # Plugin specific Metadata # -[csv/order] -status=implemented -usedby/plugins= csvstorage -type= string -description=used to manage the column order. - [crypto/encrypt] status= implemented usedby/plugins= crypto
New coverage_uploader Note: mandatory check (NEED_CHECK) was skipped
}, "coverage_uploader": { "formula": { - "sandbox_id": 267688545, + "sandbox_id": 296620226, "match": "coverage_uploader" }, "executable": {
uwp: little update
@@ -319,7 +319,11 @@ namespace rhodes IAsyncOperation<StorageFolder> rhoFolderTask = StorageFolder.GetFolderFromPathAsync(rhoDir.FullName); rhoFolderTask.AsTask().Wait(); IAsyncAction action = rhoFolderTask.GetResults().DeleteAsync(); + try { + action.AsTask().Start(); action.AsTask().Wait(); + } + catch (Exception e) ...
Add diag directory
@@ -14,7 +14,7 @@ if(HAVE_INSTALL_ECCODES_DEFINITIONS) install( FILES installDefinitions.sh DESTINATION ${ECCODES_DEFINITION_SUFF}) - install( DIRECTORY budg bufr cdf common grib1 grib2 grib3 gts mars metar tide hdf5 wrap + install( DIRECTORY budg diag bufr cdf common grib1 grib2 grib3 gts mars metar tide hdf5 wrap DES...
zephyr/shim/include/zephyr_console_shim.h: Format with clang-format BRANCH=none TEST=none
@@ -20,9 +20,7 @@ struct zephyr_console_command { }; #ifdef CONFIG_SHELL_HELP -#define _HELP_ARGS(A, H) \ - .argdesc = A, \ - .help = H, +#define _HELP_ARGS(A, H) .argdesc = A, .help = H, #else #define _HELP_ARGS(A, H) #endif @@ -44,8 +42,7 @@ int zshim_run_ec_console_command(const struct zephyr_console_command *comman...
BugID:23028187:[mesh] Refine, app.
#include <aos/hal/gpio.h> #include <tmall_model.h> #include <tmall_config.h> -#include <api/mesh.h> +#include <mesh.h> #define PID_STRING_LEN 4 #define DEVICE_NAME_LEN 6
doc: update maintainers, fix company name
@@ -4,11 +4,10 @@ Fluent Bit is developed and supported by many individuals and companies. The fo | Maintainer Name | Components | Company | | :---------------------------------------------------- | ------------------------ | ------------------------------------------------- | -| [Eduardo Silva](https://github.com/edsi...
Added mkdir command for travis.
@@ -43,6 +43,8 @@ if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi # Update OpenCR package manually git clone --recursive https://github.com/ROBOTIS-GIT/OpenCR.git --branch develop --single-branch rm -rf $HOME/.arduino15/packages/OpenCR/hardware +mkdir $HOME/Arduino/ +mkdir $HOME/Arduino/ha...
enclave-tls/dist: avoid building the enclave-tls debuginfo rpm package enclave-tls debuginfo rpm package will rebuild sgx_stub_enclave.signed.so in the incorrect pattern, it will casue enclave-tls-sever load enclave failed. So we avoid building the enclave-tls debuginfo rpm package to workaround this problem.
%define centos_base_release 1 +%define _debugsource_template %{nil} +%define debug_package %{nil} -%global _find_debuginfo_dwz_opts %{nil} -%global _dwz_low_mem_die_limit 0 -%undefine _missing_build_ids_terminate_build - +%global _missing_build_ids_terminate_build 0 %global PROJECT inclavare-containers Name: enclave-tl...
Fix doxygen expansion of _CBOR_NODISCARD
@@ -2029,7 +2029,7 @@ INCLUDE_FILE_PATTERNS = # recursively expanded use the := operator instead of the = operator. # This tag requires that the tag ENABLE_PREPROCESSING is set to YES. -PREDEFINED = CBOR_RESTRICT_POINTER= CBOR_EXPORT +PREDEFINED = CBOR_RESTRICT_POINTER= CBOR_EXPORT _CBOR_NODISCARD= # If the MACRO_EXPAN...
.github/workflows/travis-ci.yml: macosx: Use CPython3.8.
@@ -97,6 +97,10 @@ jobs: unix-port-build-with-clang-on-OSX: runs-on: macos-10.15 steps: + - name: Use CPython3.8 + uses: actions/setup-python@v2 + with: + python-version: "3.8" - name: Clone uses: actions/checkout@v2 - name: Add ~/bin:~/.local/bin to PATH
make: optinal verbose output
@@ -64,8 +64,11 @@ CFLAGS = $(OPTIMIZE_FLAGS) $(ARCH_FLAGS) $(DEVICE_FLAGS) $(TARGET_FLAGS) $(COM CXXFLAGS = $(OPTIMIZE_FLAGS) $(ARCH_FLAGS) $(DEVICE_FLAGS) $(TARGET_FLAGS) $(COMMON_FLAGS) \ -std=gnu++17 -fno-rtti -fno-exceptions -fvtable-gc -fno-threadsafe-statics -fno-use-cxa-atexit -LDFLAGS += -static -lc -lnosys -l...
parser: logfmt: reset time lookup, do not use current time
@@ -273,7 +273,7 @@ int flb_parser_logfmt_do(struct flb_parser *parser, time_key = "time"; } time_key_len = strlen(time_key); - time_lookup = time(NULL); + time_lookup = 0; /* count the number of key value pairs */ map_size = 0;
zephyr: isl923x emulator: add explicit label property The isl923x emulator and tests currently require the label property. Override the deprecated attribute from the base.yaml. BRANCH=none TEST=./twister --clobber
@@ -6,7 +6,12 @@ description: ISL923X Charger emulator compatible: "cros,isl923x-emul" -include: base.yaml +# TODO(b/239165779): Reduce or remove the usage of label properties +include: + - name: base.yaml + property-blocklist: + - label + properties: reg: required: true @@ -15,3 +20,6 @@ properties: required: false de...
add misssing {
TSErrorType result = (TSErrorType) secure_comparator_begin_compare(self.comparator, NULL, &comparationRequestLength); if (result != TSErrorTypeBufferTooSmall) { - if (error) + if (error) { *error = SCERROR(result, @"Secure Comparator failed making initialisation message"); } return nil;
fix by inverting the grb2hsv argcheck condition
@@ -217,7 +217,7 @@ static int cu_grb2hsv(lua_State *L) { const int r = luaL_checkint(L, 2); const int b = luaL_checkint(L, 3); - luaL_argcheck(L, g == r && g == b, 1, "greyscale value cannot be converted to hsv"); + luaL_argcheck(L, g != r || g != b, 1, "greyscale value cannot be converted to hsv"); uint32_t hsv = grb...
[mod_wolfssl] compat with older wolfssl versions wolfSSL_X509_get_name_oneline() added in wolfssl v4.4.0
@@ -1104,7 +1104,7 @@ mod_openssl_patch_config (request_st * const r, plugin_config * const pconf) static int safer_X509_NAME_oneline(X509_NAME *name, char *buf, size_t sz) { - #if LIBWOLFSSL_VERSION_HEX < 0x04003000 + #if LIBWOLFSSL_VERSION_HEX < 0x04004000 UNUSED(name); UNUSED(sz); #else
appveyor: in this case this is the way to install gem
@@ -101,11 +101,11 @@ build: off install: - set PATH=C:\Ruby23\bin;%PATH% - set RAKEOPT=-rdevkit - - gem install rest-client --no-document - - gem install listen --no-document - - gem install zip --no-document -# - echo y | gem install bundler --quiet --no-ri --no-rdoc -# - bundler --version + - gem install rest-client...
perl: OpenSSL::Util::Pod::extract_pod_info() now saves the file contents
@@ -82,6 +82,10 @@ was given as input. All the names extracted from the NAME section. +=item B<contents =E<gt> "..."> + +The whole contents of the .pod file. + =back =back @@ -94,17 +98,24 @@ sub extract_pod_info { my %defaults = ( debug => 0, section => 0, %$defaults_ref ); my $fh = undef; my $filename = undef; + my $...
Adjust seq of accessid and secret in gpcheckcloud template example. Fix this issue greenplum-db/sre-test#73 to adjust to normal sequence.
@@ -138,8 +138,8 @@ static void validateCommandLineArgs(map<char, string> &optionPairs) { static void printTemplate() { printf( "[default]\n" - "secret = \"aws secret\"\n" "accessid = \"aws access id\"\n" + "secret = \"aws secret\"\n" "threadnum = 4\n" "chunksize = 67108864\n" "low_speed_limit = 10240\n"
android: travis returning version
@@ -61,8 +61,8 @@ android: - extra-google-google_play_services - extra-google-m2repository - extra-android-m2repository - - android-${RHO_ANDROID_LEVEL:-21} - - addon-google_apis-google-${RHO_ANDROID_LEVEL:-21} + - android-${RHO_ANDROID_LEVEL:-19} + - addon-google_apis-google-${RHO_ANDROID_LEVEL:-19} env: global: @@ -8...
NODE: v0.3.0
{ "name": "mongodb-client-encryption", - "version": "0.2.0", + "version": "0.3.0", "description": "Official client encryption module for the MongoDB Node.js driver", "main": "index.js", "directories": {