message stringlengths 6 474 | diff stringlengths 8 5.22k |
|---|---|
Several fixes to 1-Wire on ESP32 | @@ -37,9 +37,9 @@ bool oneWireInit()
.stop_bits = UART_STOP_BITS_1,
.flow_ctrl = UART_HW_FLOWCTRL_DISABLE,
.rx_flow_ctrl_thresh = 0,
- .use_ref_tick = false
+ .use_ref_tick = false,
};
-
+ if (gpio_set_direction(gpio_num_t (NF_ONEWIRE_ESP32_UART_TX_PIN), GPIO_MODE_OUTPUT_OD) != ESP_OK) return false;
if (uart_param_conf... |
allow to convert not replaycount checked handshakes | @@ -293,12 +293,6 @@ char pcapoutstr[PATH_MAX +2];
zeiger = hccapxdata;
for(p = 0; p < hccapsets; p++)
{
- if((zeiger->message_pair & 0x80) == 0x80)
- {
- zeiger++;
- continue;
- }
-
keynr = geteapkey(zeiger->eapol);
if((keynr != 3) && (zeiger->eapol_len >= 91) && (zeiger->eapol_len <= sizeof(zeiger->eapol)))
{
|
bcc: Use bpf_probe_read_str to read tracepoint data_loc field
The data_loc field (defined as __string in kernel source) should
be treated as string NOT a fixed-size array, add a new macro
TP_DATA_LOC_READ_STR which use bpf_probe_read_str to reflect this. | @@ -1356,5 +1356,11 @@ static int ____##name(unsigned long long *ctx, ##args)
bpf_probe_read((void *)dst, __length, (char *)args + __offset); \
} while (0);
+#define TP_DATA_LOC_READ_STR(dst, field, length) \
+ do { \
+ unsigned short __offset = args->data_loc_##field & 0xFFFF; \
+ bpf_probe_read_str((void *)dst, lengt... |
OcCryptoLib: Fix potential deadlock | @@ -415,7 +415,7 @@ BigNumSignificantBitsWord (
//
NumBits = OC_BN_WORD_NUM_BITS;
Mask = (OC_BN_WORD)1U << (OC_BN_WORD_NUM_BITS - 1);
- while ((Word & Mask) == 0) {
+ while (Mask != 0 && (Word & Mask) == 0) {
--NumBits;
Mask >>= 1U;
}
|
DotNetTools: Hide CLR statistics when the CLR data is invalid | @@ -935,6 +935,9 @@ INT_PTR CALLBACK DotNetPerfPageDlgProc(
{
NMLVDISPINFO *dispInfo = (NMLVDISPINFO *)header;
+ if (!context->ControlBlockValid) // Don't show statistics when the CLR data is invalid. (dmex)
+ break;
+
if (dispInfo->item.iSubItem == 1)
{
if (dispInfo->item.mask & LVIF_TEXT)
|
Fix AdobeRGB support with MuPDF. | @@ -2184,6 +2184,7 @@ xform_document(
{
fz_set_cmm_engine(context, &fz_cmm_engine_lcms);
+# if 0
/*
* Create a calibrated colorspace using the AdobeRGB values.
*/
@@ -2197,7 +2198,13 @@ xform_document(
cs = fz_new_cal_colorspace(context, "AdobeRGB", wp_val, bp_val, gamma_val, matrix_val);
-// cs = fz_new_icc_colorspace... |
doc: fix typos in sample app guide | @@ -427,14 +427,15 @@ Copy files from the development system to your target system
Option 1: use ``scp`` to copy files over the local network
Use scp from your development system to the ~/acrn-work directory on the
- target (using the target system's IP address you found earlier)::
+ target (replace the IP address used... |
ci: update
Force use of string comparison to avoid issues comparing strings that
include specific characters like `[` and `]`, which are special symbols
and break the bash test. | @@ -45,10 +45,10 @@ for sha in $commits; do
IFS=$'\n'
for line in ${lines}; do
stripped=$(echo $line | sed -e 's/^\s*//' | sed -e 's/\s*$//')
- if [[ ${stripped} == ${author} ]]; then
+ if [[ "${stripped}" == "${author}" ]]; then
found_author=true
fi
- if [[ ${stripped} == ${committer} ]]; then
+ if [[ "${stripped}" ==... |
Added note about trailing forward-slash on default config file. | @@ -656,7 +656,8 @@ static-file .flv
# On-disk B+ Tree
# Path where the on-disk database files are stored.
-# The default value is the /tmp directory.
+# The default value is the /tmp/ directory
+# Note the trailing forward-slash.
#
#db-path /tmp/
|
fixes +spin to preserve the type of the head of the product | :> c: gate from list-item and state to product and new state
~/ %spin
|* [a=(list) b=* c=_|=(^ [** +<+])]
- => .(c `$-([_?>(?=(^ a) i.a) _b] [* _b])`c)
+ => .(c `$-([_?>(?=(^ a) i.a) _b] [_-:(c) _b])`c)
=/ acc=(list _-:(c)) ~
:> transformed list and updated state
|- ^- (pair _acc _b)
|
FAQ for Linux Handle Limit Issue | @@ -126,3 +126,17 @@ On the latest version of Windows, these counters are also exposed via PerfMon.ex
Counters are also captured at the beginning of MsQuic ETW traces, and unlike PerfMon, includes all MsQuic instances running on the system, both user and kernel mode.
# FAQ
+
+## Why do I get errors on Linux when I try ... |
i2c-pseudo: Fix data byte separator in multi-byte I2C_XFER_REPLY example.
BRANCH=none
TEST=none | @@ -193,7 +193,7 @@ adapters, even when adapter numbers have been reused.
Write Command: I2C_XFER_REPLY <xfer_id> <msg_id> <addr> <flags> <errno> [<read_byte>[:...]]
Example: "I2C_XFER_REPLY 3 0 0x0070 0x0000 0\n"
-Example: "I2C_XFER_REPLY 3 1 0x0070 0x0001 0 0B 29 02 D9\n"
+Example: "I2C_XFER_REPLY 3 1 0x0070 0x0001 0... |
adds list +join gate to stdlib | |@ ++ $ ?:(*? ~ [i=(snag 0 a) t=$])
--
a
+:: +join: construct a new list, placing .sep between every pair in .lit
+::
+++ join
+ |* [sep=* lit=(list)]
+ =. sep `_?>(?=(^ lit) i.lit)`sep
+ ?~ lit ~
+ =| out=(list _?>(?=(^ lit) i.lit))
+ |- ^+ out
+ ?~ t.lit
+ (flop [i.lit out])
+ $(out [sep i.lit out], lit t.lit)
::
:: ... |
Whitelist hiredis repo path in cygwin | @@ -197,6 +197,7 @@ jobs:
HIREDIS_PATH: ${{ github.workspace }}
run: |
build_hiredis() {
+ git config --global --add safe.directory "$(cygpath -u $HIREDIS_PATH)"
cd $(cygpath -u $HIREDIS_PATH)
git clean -xfd
make
|
Added more ShellUtil lock types | @@ -26,9 +26,9 @@ enum {
SCE_SHELL_UTIL_LOCK_TYPE_QUICK_MENU = 0x2,
SCE_SHELL_UTIL_LOCK_TYPE_POWEROFF_MENU = 0x4,
SCE_SHELL_UTIL_LOCK_TYPE_UNK8 = 0x8,
- SCE_SHELL_UTIL_LOCK_TYPE_UNK10 = 0x10,
- SCE_SHELL_UTIL_LOCK_TYPE_UNK20 = 0x20,
- SCE_SHELL_UTIL_LOCK_TYPE_UNK40 = 0x40,
+ SCE_SHELL_UTIL_LOCK_TYPE_USB_CONNECTION = 0x... |
mtk_isp: Enlarge CONFIG_ROM_SIZE for ISP EC porting
Enlarge ROM size for Camera ISP EC porting
BRANCH=None
TEST=make BOARD=kukui_scp
Tested-by: Nicolas Boichat | */
#define ICACHE_BASE 0x7C000
#define CONFIG_ROM_BASE 0x0
-#define CONFIG_RAM_BASE 0x10000
+#define CONFIG_RAM_BASE 0x20000
#define CONFIG_ROM_SIZE (CONFIG_RAM_BASE - CONFIG_ROM_BASE)
#define CONFIG_RAM_SIZE (CONFIG_IPC_SHARED_OBJ_ADDR - CONFIG_RAM_BASE)
#define CONFIG_CODE_RAM_SIZE CONFIG_RAM_BASE
|
Update: don't query for fake compound nodes, and translate instance/term properly | @@ -36,8 +36,14 @@ sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
def toNarsese(subject_relation_predicate):
(subject, relation, predicate) = subject_relation_predicate
if relation == "IsA":
+ if subject[0].isupper():
+ return "<{" + subject + "} --> " + predicate + ">."
+ else:
return "<" + subject + " --... |
libwebp.pc: add libsharpyuv to requires | @@ -6,6 +6,7 @@ includedir=@includedir@
Name: libwebp
Description: Library for the WebP graphics format
Version: @PACKAGE_VERSION@
+Requires: libsharpyuv
Cflags: -I${includedir}
Libs: -L${libdir} -lwebp
Libs.private: -lm @PTHREAD_CFLAGS@ @PTHREAD_LIBS@
|
envydis/gm107: add 1 and 2 component color masks to texs and tlds | @@ -935,6 +935,14 @@ static struct insn tabda00_1[] = {
};
static struct insn tabda00_2[] = {
+ { 0x0000000ff0000000ull, 0x001c000ff0000000ull, N("r") },
+ { 0x0004000ff0000000ull, 0x001c000ff0000000ull, N("g") },
+ { 0x0008000ff0000000ull, 0x001c000ff0000000ull, N("b") },
+ { 0x000c000ff0000000ull, 0x001c000ff0000000u... |
kdb: remove third option from cmdline | @@ -230,12 +230,6 @@ Cmdline::Cmdline (int argc, char ** argv, Command * command)
long_options.push_back (o);
helpText += "-2 --second Suppress the second column.\n";
}
- if (acceptedOptions.find ('3') != string::npos)
- {
- option o = { "third", no_argument, nullptr, '3' };
- long_options.push_back (o);
- helpText += ... |
docs(bar) fix typos in widget examples | @@ -22,13 +22,13 @@ Stripe pattern and range value
.. lv_example:: widgets/bar/lv_example_bar_4
:language: c
-Bar with RTL and RTL base direction
+Bar with LTR and RTL base direction
""""""""""""""""""""""""""""""""""""
.. lv_example:: widgets/bar/lv_example_bar_5
:language: c
-Custom drawr to show the current value
+C... |
minor cleanup to expose icw_resource_group | @@ -12,6 +12,7 @@ groups:
- icw_gporca_centos7
- icw_gporca_sles11
- icw_planner_ictcp_centos6
+ - icw_resource_group
- MU_check_centos
- regression_tests_gpcloud_centos
- MM_gpperfmon
@@ -1547,6 +1548,7 @@ jobs:
- icw_gporca_centos7
- icw_gporca_sles11
- icw_planner_ictcp_centos6
+ - icw_resource_group
- MU_check_cent... |
arvo: moves most new structures to top level | ::
+| %interface
::
+:: $ball: dynamic kernel action
:: $curd: tagged, untyped event
:: $duct: causal history
:: +hobo: %soft task builder
+:: $goof: crash label and trace XX fail/ruin/crud/flaw/lack/miss
:: $monk: general identity
+:: $move: cause and action
:: $ovum: card with cause
:: $scry-sample: vane +scry argume... |
added note on bash shell and parenthesis vs square brackets | @@ -295,19 +295,28 @@ function initialize_build_visit()
# export VISITARCH=${VISITARCH-${ARCH}}
export SO_EXT="dylib"
VER=$(uname -r)
- # Check for Panther, because MACOSX_DEPLOYMENT_TARGET will default to 10.1
- # Used http://en.wikipedia.org/wiki/Darwin_(operating_system) to map Darwin
- # Kernel versions to OSX vers... |
docs: modify a conventional expression
Modify a conventional expression:
"Computing Performance Requirements" -> "Process Capacity Requirements".
Fix issue | @@ -44,7 +44,7 @@ To enable HyperLedger Fabric capability, the storage requirements of the C-langu
The above does not include the system libraries that the BoAT Framework (C language version) depends on. The exact values may vary with different blockchain protocols.
-## Part 2 Computing Performance Requirements
+## Par... |
better handling of read() interfacename | @@ -7801,14 +7801,11 @@ static char interfacepathname[PATH_MAX];
snprintf(interfacepathname, PATH_MAX -1, "/sys/class/net/%s/phy80211/name", interfacename);
fd = open(interfacepathname, O_RDONLY);
if(fd < 0) return;
-if(read(fd, phyinterfacename, PHYIFNAMESIZE) == -1)
+if(read(fd, phyinterfacename, PHYIFNAMESIZE) > 0)
... |
Build: Fixed Resources folder placement. | @@ -21,10 +21,10 @@ package() {
mkdir -p tmp/EFI/OC/Kexts || exit 1
mkdir -p tmp/EFI/OC/Tools || exit 1
mkdir -p tmp/EFI/BOOT || exit 1
- mkdir -p tmp/EFI/Resources/Audio || exit 1
- mkdir -p tmp/EFI/Resources/Font || exit 1
- mkdir -p tmp/EFI/Resources/Image || exit 1
- mkdir -p tmp/EFI/Resources/Label || exit 1
+ mkd... |
test-suite: remove OMP_NUM_THREADS setting for imb2 test | @@ -11,8 +11,7 @@ else
fi
CMD_TIMEOUT="10:00"
-TEST_NUM_RANKS=8
-TEST_NUM_THREADS=4
+TEST_NUM_RANKS=2
check_rms
rm=$RESOURCE_MANAGER
@@ -21,7 +20,6 @@ NODES=2
TASKS=$((NODES*TEST_NUM_RANKS))
# set global env settings
-export OMP_NUM_THREADS=$TEST_NUM_THREADS
if [ $LMOD_FAMILY_MPI == "mvapich2" ];then
export MV2_ENABLE_... |
Remove module dependency
Elinimate macros defined by modules locally in the functions that are
moving to the new constant-time module. | @@ -1277,7 +1277,7 @@ static unsigned mbedtls_cf_mpi_uint_lt( const mbedtls_mpi_uint x,
ret |= y & cond;
- ret = ret >> ( biL - 1 );
+ ret = ret >> ( sizeof( mbedtls_mpi_uint ) * 8 - 1 );
return (unsigned) ret;
}
|
AudioDxe: Fix issue with playback ending early | @@ -67,7 +67,7 @@ HdaControllerStreamOutputPollTimerHandler (
// Get stream DMA position.
//
HdaStreamDmaPos = HdaStream->HdaControllerDev->DmaPositions[HdaStream->Index].Position;
- if (HdaStreamDmaPos > HdaStream->DmaPositionLast) {
+ if (HdaStreamDmaPos >= HdaStream->DmaPositionLast) {
DmaChanged = HdaStreamDmaPos -... |
Ampton: tune the gyro axis and direction
BRANCH=octopus
TEST=run the CTS verifier, check the axis and direction is correct | @@ -150,6 +150,12 @@ const mat33_fp_t base_standard_ref = {
{ 0, 0, FLOAT_TO_FP(1)}
};
+const mat33_fp_t gyro_standard_ref = {
+ { 0, FLOAT_TO_FP(-1), 0},
+ { FLOAT_TO_FP(1), 0, 0},
+ { 0, 0, FLOAT_TO_FP(1)}
+};
+
/* sensor private data */
static struct kionix_accel_data g_kx022_data;
static struct bmi160_drv_data_t g_... |
Consolidate sha256 checksums | @@ -235,9 +235,16 @@ pipeline {
stages {
stage('Unstash') {
steps {
+ dir('upload') {
+ unstash 'astcenc-linux-x64-hash'
+ unstash 'astcenc-macos-x64-hash'
+ }
dir('upload/linux-x64') {
unstash 'astcenc-linux-x64'
}
+ dir('upload/macos-x64') {
+ unstash 'astcenc-macos-x64'
+ }
dir('upload/windows-x64') {
unstash 'astce... |
Reject invalid encodings during decode | @@ -301,6 +301,7 @@ void physical_to_symbolic(
if (rsvbits != 3)
{
scb.block_type = SYM_BTYPE_ERROR;
+ return;
}
int vx_low_s = read_bits(8, 12, pcb.data) | (read_bits(5, 12 + 8, pcb.data) << 8);
@@ -313,6 +314,7 @@ void physical_to_symbolic(
if ((vx_low_s >= vx_high_s || vx_low_t >= vx_high_t) && !all_ones)
{
scb.bloc... |
Add parentheses around macro argument of OSSL_NELEM. | @@ -539,7 +539,7 @@ struct servent *getservbyname(const char *name, const char *proto);
# endif
/* end vxworks */
-#define OSSL_NELEM(x) (sizeof(x)/sizeof(x[0]))
+#define OSSL_NELEM(x) (sizeof(x)/sizeof((x)[0]))
#ifdef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
# define CRYPTO_memcmp memcmp
|
remove libevent license from usage
acknowledgement clause was removed a long time ago so it's no longer
necessary to include in the binary output. | @@ -4219,39 +4219,6 @@ static void usage_license(void) {
"THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n"
"(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n"
"OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"
- "\n"
- "\n"
- "This product includes softw... |
SW: Fixing -d parameter in nvme_test.c | @@ -303,7 +303,7 @@ int main(int argc, char *argv[])
break;
case 'd': /* drive */
drive = strtol(optarg, (char **)NULL, 0);
- if ((0 != drive) || (1 != drive)) {
+ if ((0 != drive) && (1 != drive)) {
VERBOSE0("Error: Drive (-d, --drive) must be 0 or 1\n");
exit(1);
}
|
reverse encoder direction (CCW==decrement, CW==increment) | @@ -368,7 +368,7 @@ static lv_res_t lv_spinbox_signal(lv_obj_t * spinbox, lv_signal_t sign, void * p
{
if(indev_type == LV_INDEV_TYPE_ENCODER)
{
- lv_spinbox_decrement(spinbox);
+ lv_spinbox_increment(spinbox);
}
else
{
@@ -379,7 +379,7 @@ static lv_res_t lv_spinbox_signal(lv_obj_t * spinbox, lv_signal_t sign, void * p... |
Update persiststore.c
fix the issue | @@ -110,7 +110,7 @@ BOAT_RESULT BoatPersistRead(const BCHAR *storage_name_str, BOAT_OUT void *data_p
BUINT8 encrypted_array[len_to_read + 31]; // 31 for AES padding
BUINT32 encrypted_readLen;
// Plain buffer
- BUINT8 plain_array[len_to_read];
+ BUINT8 plain_array[len_to_read+31];
BUINT32 plain_len = sizeof(plain_array)... |
fixed clocking in top.sv | @@ -311,7 +311,7 @@ module top (
// Clock generation
// 250MHz AFU clock
always begin
- #4.0ns;
+ #2.0ns;
ha_pclock = !ha_pclock;
end
@@ -720,13 +720,13 @@ module top (
//-- only for DDRI_USED=TRUE
// 200MHz DDR3 reference clock //-- only for DDRI_USED=TRUE
always begin //-- only for DDRI_USED=TRUE
- #5.0ns; //-- only ... |
Be more precise about the snapshot contents | @@ -310,7 +310,7 @@ u3_dawn_vent(u3_noun seed)
// load snapshot from file
//
if ( 0 != u3_Host.ops_u.ets_c ) {
- fprintf(stderr, "boot: loading ethereum snapshot\r\n");
+ fprintf(stderr, "boot: loading azimuth snapshot\r\n");
u3_noun raw_snap = u3ke_cue(u3m_file(u3_Host.ops_u.ets_c));
sap = u3nc(u3_nul, raw_snap);
}
@@... |
fixed with proper c coverage | @@ -2,7 +2,10 @@ sudo: required
dist: trusty
-language: c
+language: cpp
+
+compiler:
+ - gcc
addons:
apt:
@@ -21,7 +24,7 @@ matrix:
install:
#- git lfs pull
- source .ci/travis.sh
- - pip install coveralls
+ - pip install --user cpp-coveralls
cache:
directories:
@@ -34,8 +37,9 @@ git:
script:
- py.test -v -s tests
+ -... |
VERSION bump to version 2.0.256 | @@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
# set version of the project
set(LIBYANG_MAJOR_VERSION 2)
set(LIBYANG_MINOR_VERSION 0)
-set(LIBYANG_MICRO_VERSION 255)
+set(LIBYANG_MICRO_VERSION 256)
set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}... |
Uses correct env var for osx library path | @@ -44,7 +44,7 @@ install:
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then hash -r ; fi
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then source activate test-environment ; fi
- if ! [[ $TRAVIS_OS_NAME == "linux" ]]; then export PKG_CONFIG_PATH=$CONDA_PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH ; fi
- - if ! [[ $TRAVIS_OS_NAME == ... |
TU_ASSERT return 0. | @@ -204,14 +204,14 @@ uint16_t dfu_moded_open(uint8_t rhport, tusb_desc_interface_t const * itf_desc,
else
{
// Only one DFU interface is supported
- TU_ASSERT(_dfu_state_ctx.intf == intf);
+ TU_ASSERT(_dfu_state_ctx.intf == intf, 0);
}
// CFG_TUD_DFU_ATL_MAX should big enough to hold all alt settings
- TU_ASSERT(alt <... |
Added playback-time; exits playback early | @@ -16,6 +16,8 @@ STATIC_CONFIG_ITEM(PLAYBACK, "playback", 's', "File to be used for playback if p
STATIC_CONFIG_ITEM(PLAYBACK_FACTOR, "playback-factor", 'f',
"Time factor of playback -- 1 is run at the same timing as original, 0 is run as fast as possible.",
1.0f)
+STATIC_CONFIG_ITEM(PLAYBACK_TIME, "playback-time", 'f... |
os/mm/mm_heap: Error handling in get_heapindex Validate BASE_HEAP before processing. | @@ -219,6 +219,11 @@ int mm_get_heapindex(void *mem)
if (mem == NULL) {
return 0;
}
+ if (BASE_HEAP == NULL) {
+ lldbg("BASE_HEAP NULL\n");
+ return 0;
+ }
+
for (heap_idx = 0; heap_idx < CONFIG_KMM_NHEAPS; heap_idx++) {
int region = 0;
#if CONFIG_KMM_REGIONS > 1
|
Remove mode param from AES-CTR docs | @@ -511,10 +511,6 @@ int mbedtls_aes_crypt_ofb( mbedtls_aes_context *ctx,
* \brief This function performs an AES-CTR encryption or decryption
* operation.
*
- * This function performs the operation defined in the \p mode
- * parameter (encrypt/decrypt), on the input data buffer
- * defined in the \p input parameter.
- ... |
Two minor fixes for cluster.c
clusterNodeClearSlotBit()/clusterNodeSetSlotBit(), only set bit when slot does not exist and clear bit when slot does exist. | @@ -4297,7 +4297,7 @@ static int clusterNodeCronHandleReconnect(clusterNode *node, mstime_t handshake_
link->conn = connCreate(connTypeOfCluster());
connSetPrivateData(link->conn, link);
if (connConnect(link->conn, node->ip, node->cport, server.bind_source_addr,
- clusterLinkConnectHandler) == -1) {
+ clusterLinkConnec... |
rtnlinv.c: fix memleak | @@ -407,11 +407,11 @@ int main_rtnlinv(int argc, char* argv[argc])
debug_printf(DP_DEBUG3, "Start creating nufft-objects...");
+ traj1 = md_alloc(DIMS, trj1_dims, CFL_SIZE);
+
for (unsigned int i = 0; i < turns; ++i) {
// pick trajectory for current frame
- traj1 = md_alloc(DIMS, trj1_dims, CFL_SIZE);
-
long pos[DIMS] ... |
also pulse sensor sync | @@ -24,6 +24,7 @@ void TIM1_UP_TIM10_IRQ_Handler(void) {
// Start clock pulse
set_gpio_output(GPIOB, 14, true);
set_gpio_output(GPIOB, 15, true);
+ set_gpio_output(GPIOC, 5, true);
}
// Reset interrupt
@@ -37,6 +38,7 @@ void TIM1_CC_IRQ_Handler(void) {
// End clock pulse
set_gpio_output(GPIOB, 14, false);
set_gpio_outp... |
osx: travis fixing path for QTDIR | @@ -70,7 +70,7 @@ env:
- BUILD_ARTEFACTS_DIR=$HOME/build_artefacts
- S3_JOB_DIR="$TRAVIS_COMMIT"/"travis-$TRAVIS_JOB_NUMBER"_"$TRAVIS_OS_NAME"
- S3_DEPLOY_DIR="$TRAVIS_REPO_SLUG"/"$TRAVIS_BRANCH"
- - QTDIR="$HOME/Qt5.9.5"
+ - QTDIR="$HOME/Qt5.9.5/5.9.5/clang_64"
osx_image: xcode9.1
|
WIP: Rename editor selection type type | @@ -20,7 +20,7 @@ export type Tool =
export type Brush = "8px" | "16px" | "fill";
-export type EditorSection =
+export type EditorSelectionType =
| "world"
| "scene"
| "actor"
@@ -31,7 +31,7 @@ export type ZoomSection = "world" | "sprites" | "backgrounds" | "ui";
export interface EditorState {
tool: Tool;
- type: Edito... |
Improve CD file parsing error messages. | #include <catboost/libs/helpers/exception.h>
#include <catboost/libs/logging/logging.h>
+#include <util/generic/cast.h>
#include <util/generic/set.h>
#include <util/stream/file.h>
#include <util/stream/input.h>
@@ -17,8 +18,8 @@ using namespace NCB;
namespace {
- inline void CheckAllFeaturesPresent(const TVector<TColum... |
[CI] Fix dependencies in CI script | @@ -47,6 +47,15 @@ tc-llvm:
- install/llvm
expire_in: 1 day
+tc-isa-sim:
+ stage: build
+ script:
+ - make riscv-isa-sim
+ artifacts:
+ paths:
+ - install/riscv-isa-sim
+ expire_in: 1 day
+
halide:
stage: compiler
script:
@@ -78,6 +87,25 @@ apps-llvm:
paths:
- hardware/build/transcript
- hardware/build/trace_hart_*.tra... |
llvm5.0: use input kind helper to avoid breakage
Upstream llvm renamed an enum, so use a helper function that is
available in all versions to fix compatibility. | @@ -230,8 +230,8 @@ int ClangLoader::parse(unique_ptr<llvm::Module> *mod, TableStorage &ts, const st
if (in_memory) {
invocation0.getPreprocessorOpts().addRemappedFile(main_path, &*main_buf);
invocation0.getFrontendOpts().Inputs.clear();
- invocation0.getFrontendOpts().Inputs.push_back(
- FrontendInputFile(main_path, I... |
Try using new build image. | +variables:
+ CI_BUILD_IMAGE: $CI_REGISTRY_IMAGE/zmk-build
build:
- image: zephyrprojectrtos/zephyr-build
+ image: $CI_BUILD_IMAGE
+
+ variables:
+ GIT_CLONE_PATH: $CI_BUILD_DIR/zmk
before_script:
- west init -l .
- west update
- west config --global zephyr.base-prefer configfile
- west zephyr-export
- - pip3 install -... |
chat-hook: on-migrate, send fresh invites
Accepting these post-upgrade should re-establish all the required
subscriptions. (But doesn't as of this commit, work still pending.) | (create-group new-group who.newp)
(hookup-group new-group kind.newp)
[(record-group new-group chat)]~
+ ::
+ ?. =(our.bol host) ~
+ (send-invites chat who.newp)
==
::
++ unify-permissions
%metadata-action
!> ^- metadata-action
[%add group [%chat chat] metadata]
+ ::
+ ++ send-invites
+ |= [chat=path who=(set ship)]
+ ^... |
[cmake] check the existence of date command before using it | @@ -43,9 +43,11 @@ configure_file(scripts/buildtools.py share/buildtools.py COPYONLY)
set(PROJECT_NAME siconos)
# Get current year (for licence and other cartridges)
+find_program(DATE_COMMAND date)
+if(DATE_COMMAND)
execute_process(COMMAND date "+\"%Y\"" OUTPUT_VARIABLE YEAR)
string(STRIP ${YEAR} YEAR)
-
+endif()
# Re... |
Correct include path to #include "common/tusb_fifo.h" | */
#include "tusb_option.h"
-#include "tusb_fifo.h"
+#include "common/tusb_fifo.h"
// Since TinyUSB doesn't use SOF for now, and this interrupt too often (1ms interval)
// We disable SOF for now until needed later on
|
fix: basic setup link | @@ -91,7 +91,7 @@ You can setup git to run prettier automatically when you commit by installing th
### Development Setup
To get your development environment setup going, start at the
-[basic setup](https://zmk.dev/docs/dev-setup) docs, and make sure you can build and flash
+[basic setup](https://zmk.dev/docs/developmen... |
Add :down verb to loop macro.
Also remove with-idemp from core, which was both confusing
(to the author) and not generally useful. | :struct true})
(fn idempotent? [x] (not (get non-atomic-types (type x))))))
-(defmacro with-idemp
- "Return janet code body that has been prepended
- with a binding of form to atom. If form is a non-idempotent
- form (a function call, etc.), make sure the resulting
- code will only evaluate once, even if body contains ... |
Validate Monero PaymentID on login | @@ -81,21 +81,31 @@ namespace MiningCore.Blockchain.Monero
// extract worker/miner/paymentid
var split = loginRequest.Login.Split('.');
- context.MinerName = split[0];
- context.WorkerName = split.Length > 1 ? split[1] : null;
- context.UserAgent = loginRequest.UserAgent;
+ context.MinerName = split[0].Trim();
+ contex... |
king: evaluate text which goes into the log | @@ -54,10 +54,10 @@ data Ef
deriving (Show)
data St = St
- { sHistory :: Seq Text
- , sLine :: Text
- , sCurPos :: Word
- , sSpinner :: SpinnerState
+ { sHistory :: !(Seq Text)
+ , sLine :: !Text
+ , sCurPos :: !Word
+ , sSpinner :: !SpinnerState
}
deriving (Show)
@@ -86,7 +86,7 @@ step st@St{..} = \case
word = fromInt... |
Report CPU times. | @@ -313,12 +313,16 @@ static PyObject *wsgi_request_metrics(void)
double capacity_utilization = 0.0;
static double start_time = 0.0;
+ static double start_cpu_system_time = 0.0;
+ static double start_cpu_user_time = 0.0;
static double start_request_busy_time = 0.0;
static apr_uint64_t start_request_count = 0;
double ti... |
Another int -> size_t | @@ -189,7 +189,7 @@ static VALUE parse(VALUE self, VALUE string, VALUE max_parse_errors) {
}
GumboVector *children = &output->document->v.document.children;
- for (int i=0; i < children->length; i++) {
+ for (size_t i=0; i < children->length; i++) {
GumboNode *child = children->data[i];
xmlNodePtr node = walk_tree(doc,... |
Correctly handle pytest names with double colon in parameters
ISSUE: | @@ -280,11 +280,11 @@ def get_test_log_file_path(output_dir, class_name, test_name, extension="log"):
def split_node_id(nodeid, test_suffix=None):
+ path, possible_open_bracket, params = nodeid.partition('[')
separator = "::"
- if separator in nodeid:
- path, test_name = nodeid.split(separator, 1)
+ if separator in pat... |
imxrt117x: Fixed wrong cpuclk value
JIRA: | @@ -709,7 +709,7 @@ void _imxrt_init(void)
imxrt_common.iomux_lpsr = (void *)0x40c08000;
imxrt_common.iomuxc = (void *)0x400e8000;
- imxrt_common.cpuclk = 640000000;
+ imxrt_common.cpuclk = 696000000;
/* Store reset flags and then clean them */
imxrt_common.resetFlags = *(imxrt_common.src + src_srsr) & 0x1f;
|
Added usefull staff to typetraits.h. | @@ -27,6 +27,17 @@ namespace NPrivate {
struct TUserTypeTrait {
static constexpr ui64 TypeTraitFlags = 0;
};
+
+ template <class... Bs>
+ constexpr bool Conjunction() {
+ bool bs[] = { Bs::value... };
+ for (auto b : bs) {
+ if (!b) {
+ return false;
+ }
+ }
+ return true;
+ };
}
template <class T>
@@ -269,6 +280,12 @@... |
Fix windows path issues with test_qplot_scene
Use pathlib.Path. | # Kathleen Biagas, Tue Feb 16, 2021
# Add encoding='iso-8859-1' to open command when reading.
#
+# Kathleen Biagas, Wed Mar 3, 2021
+# Use pathlib's Path to fix path issues on Windows.
#
import unittest
@@ -17,6 +19,7 @@ from visit_utils import *
import unittest
import os
from os.path import join as pjoin
+from pathlib... |
efficient opentimer callback. | @@ -355,6 +355,7 @@ void opentimers_timer_callback(void){
PORT_TIMER_WIDTH tempTimerGap;
PORT_TIMER_WIDTH tempLastTimeout = opentimers_vars.currentTimeout;
// 1. find the expired timer
+ idToCallCB = TOO_MANY_TIMERS_ERROR;
for (i=0;i<MAX_NUM_TIMERS;i++){
if (opentimers_vars.timersBuf[i].isrunning==TRUE){
// all timers ... |
Update the script that generates the release checksums. | @@ -112,9 +112,10 @@ do
$cmd INSTALL_NOTES >> $output
$cmd jvisit$version.tar.gz >> $output
$cmd visit-install$version2 >> $output
- $cmd visit$version2.windows-x86_64.exe >> $output
- $cmd visit$version2.darwin-x86_64-10_13.dmg >> $output
- $cmd visit$version2.darwin-x86_64-10_13.tar.gz >> $output
+ $cmd visit${versio... |
naive: adoption test was wrong, not naive.hoon | =^ f5 state (n state %bat q:(gen-tx 0 lm-escape %rigrut-lm-key-0))
[:(welp f1 f2 f3 f4 f5) state]
::
-::
:: ~dopbud is for testing L1 ownership with L2 spawn proxy
::
++ init-dopbud
++ gen-rut-jar
^- (jar @p event)
=/ filter ;: cork
- (cury filter-owner %.y)
+ (cury filter-owner %.n)
(cury filter-proxy %own)
(cury filt... |
Fix compile error, add number-up checks. | @@ -369,7 +369,7 @@ _cupsConvertOptions(
* Map finishing options...
*/
- if (copies != finishing_copies)
+ if (copies != finishings_copies)
{
// Figure out the proper job-pages-per-set value...
if ((value = cupsGetOption("job-pages", num_options, options)) == NULL)
@@ -378,10 +378,16 @@ _cupsConvertOptions(
if (value)
... |
Implemented location bias handling for offline geocoding, use same logic as in online services | #include "geometry/PolygonGeometry.h"
#include "geometry/MultiGeometry.h"
#include "projections/Projection.h"
+#include "projections/EPSG3857.h"
+#include "utils/Const.h"
#include <geocoding/Geocoder.h>
#include <geocoding/RevGeocoder.h>
@@ -30,10 +32,21 @@ namespace carto {
std::vector<std::shared_ptr<GeocodingResult>... |
typechecker-regex-prototype: enable test in travis | @@ -162,7 +162,7 @@ before_script:
- |
if [[ $HASKELL == ON ]]; then
bindings="haskell"
- plugins="resolver_fm_hpu_b;dump;list;spec"
+ plugins="resolver_fm_hpu_b;dump;list;spec;haskell;typechecker"
tools="kdb"
fi
- |
|
fix build bug when build in ci | @@ -12,6 +12,7 @@ subdir = src/include
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
+override CPPFLAGS := -I$(prefix)/include $(CPPFLAGS)
all: pg_config.h pg_config_os.h check_oids check_keywords
|
Add eval command to console. | #include "config.h"
#include "ext/gif.h"
#include "ext/file_dialog.h"
+#include "machine.h"
#include <zlib.h>
#include <ctype.h>
@@ -2216,6 +2217,28 @@ static void onConsoleResumeCommand(Console* console, const char* param)
resumeRunMode();
}
+static void onConsoleEvalCommand(Console* console, const char* param)
+{
+ p... |
allow AssetPackage subclasses in Objective-c and Java | #ifndef _ASSETPACKAGE_I
#define _ASSETPACKAGE_I
-%module AssetPackage
+%module(directors="1") AssetPackage
!proxy_imports(carto::AssetPackage, core.BinaryData, core.StringVector)
%attributeval(carto::AssetPackage, %arg(std::vector<std::string>), AssetNames, getAssetNames)
!standard_equals(carto::AssetPackage);
+%featur... |
fix device flow missing scopes | @@ -171,7 +171,9 @@ void oidcd_handleGen(struct ipcPipe pipes, const char* account_json,
secFree(scope);
return;
} else if (strcaseequal(current_flow->val, FLOW_VALUE_DEVICE)) {
+ if (scope) {
account_setScopeExact(account, oidc_strcopy(scope));
+ }
struct oidc_device_code* dc = initDeviceFlow(account);
if (dc == NULL)... |
error prone configuration new style | @@ -1702,6 +1702,9 @@ module JAVA_PLACEHOLDER: BASE_UNIT {
when($MAKE_UBERJAR_VALUE) {
PEERDIR+=contrib/libs/platform/java/uberjar
}
+ when($ERROR_PRONE_VALUE) {
+ PEERDIR+=contrib/libs/platform/java/error_prone
+ }
NO_PLATFORM()
JAVA_MODULE()
@@ -3408,6 +3411,18 @@ when ($JDK_VERSION == "10") {
JDK10=yes # remove this... |
add pool tag for minedblocks | @@ -1698,15 +1698,15 @@ static inline void print_block(struct block_internal *block, int print_only_addr
fprintf(out, "%s\n", address);
} else {
xdag_time_to_string(block->time, time_buf);
- fprintf(out, "%s %s %s\n", address, time_buf, xdag_get_block_state_info(block->flags));
+ fprintf(out, "%s %s %-8s %-32s\n", addr... |
Apache NimBLE 1.4.0 release | @@ -22,8 +22,8 @@ repo.versions:
"0.0.0": "master"
"0-dev": "0.0.0"
- "0-latest": "1.3.0"
- "1-latest": "1.3.0"
+ "0-latest": "1.4.0"
+ "1-latest": "1.4.0"
"1.0.0": "nimble_1_0_0_tag"
"1.1.0": "nimble_1_1_0_tag"
|
using avt ghost zone types instead | #include <vtkPointData.h>
#include <vtkStructuredGrid.h>
#include <vtkUnsignedCharArray.h>
-
#include <vtkCellData.h>
+#include <avtGhostData.h>
+
#include "vtkPLOT3DReaderInternals.h"
#include "PLOT3DFunctions.h"
@@ -845,7 +846,7 @@ vtkPLOT3DReader::ReadGrid(FILE *xyzFp)
if (ib[ids->GetId(ptIdx)] == 0)
// If node is m... |
core/host/stack_trace.c: Format with clang-format
BRANCH=none
TEST=none | @@ -45,8 +45,8 @@ static void __attribute__((noinline)) _task_dump_trace_impl(int offset)
for (i = 0; i < sz - offset; ++i) {
fprintf(stderr, "#%-2d %s\n", i, messages[i]);
/* %p is correct (as opposed to %pP) since this is the host */
- sprintf(buf, "addr2line %p -e %s",
- trace[i + offset], __get_prog_name());
+ spri... |
fix write certificate fail | @@ -1970,8 +1970,13 @@ static int ssl_tls13_write_client_finished( mbedtls_ssl_context *ssl )
{
int ret;
- mbedtls_ssl_set_outbound_transform( ssl, ssl->handshake->transform_handshake );
-
+ if( !ssl->handshake->client_auth )
+ {
+ MBEDTLS_SSL_DEBUG_MSG( 1,
+ ( "Switch to handshake traffic keys for outbound traffic" ) ... |
Add button map for LIDL doorbell | ]
},
+ "lidlDoorbellMap": {
+ "vendor": "LIDL Silvercrest",
+ "doc": "Lidl / Silvercrest doorbell (_TZ1800_ladpngdx)",
+ "modelids": ["HG06668"],
+ "buttons": [
+ {"S_BUTTON_1": "Action button"}
+ ],
+ "map": [
+ [1, "0x01", "IAS_ZONE", "STATUS_CHANGE", "0x05", "S_BUTTON_1", "S_BUTTON_ACTION_SHORT_RELEASED", "Ring"]
+ ... |
fix border resize bug | @@ -3563,6 +3563,8 @@ resizemouse(const Arg *arg)
}
}
if (!selmon->lt[selmon->sellt]->arrange || c->isfloating) {
+ if (c->bw == 0)
+ c->bw = borderpx;
if (!forceresize)
resize(c, nx, ny, nw, nh, 1);
else
|
mangoapp: fixing up ctl switch statements | @@ -37,23 +37,35 @@ static uint8_t raw_msg[1024] = {0};
void ctrl_thread(){
while (1){
const struct mangoapp_ctrl_msgid1_v1 *mangoapp_ctrl_v1 = (const struct mangoapp_ctrl_msgid1_v1*) raw_msg;
+ memset(raw_msg, 0, sizeof(raw_msg));
size_t msg_size = msgrcv(msgid, (void *) raw_msg, sizeof(raw_msg), 2, 0);
switch (mangoa... |
Add ISO number for longitudinal limits flag comment | @@ -101,6 +101,7 @@ bool brake_pressed_prev = false;
// If using this flag, be aware that harder braking is more likely to lead to rear endings,
// and that alone this flag doesn't make braking compliant because there's also a time element.
+// See ISO 15622:2018 for more information.
#define UNSAFE_RAISE_LONGITUDINAL_... |
Fix Coverity out-of-bounds access | @@ -357,8 +357,10 @@ static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx,
case EVP_CIPH_CBC_MODE:
n = EVP_CIPHER_CTX_get_iv_length(ctx);
- if (!ossl_assert(n >= 0 && n <= (int)sizeof(ctx->iv)))
+ if (n < 0 || n > (int)sizeof(ctx->iv)) {
+ ERR_raise(ERR_LIB_EVP, EVP_R_INVALID_IV_LENGTH);
return 0;
+ }
if (iv != NULL... |
Fix KEY_READ showing as KEY_EXECUTE | * Authors:
*
* wj32 2010-2016
- * dmex 2017-2021
+ * dmex 2017-2023
*
*/
@@ -171,7 +171,7 @@ ACCESS_ENTRIES(Key)
{ L"Full control", KEY_ALL_ACCESS, TRUE, TRUE },
{ L"Read", KEY_READ, TRUE, FALSE },
{ L"Write", KEY_WRITE, TRUE, FALSE },
- { L"Execute", KEY_EXECUTE, TRUE, FALSE },
+ //{ L"Execute", KEY_EXECUTE, TRUE, FAL... |
nimble/ll: Reset backoff only when sending scan request
Don't decrement backoff if we failed to send scan request. | @@ -265,6 +265,8 @@ ble_ll_scan_ext_adv_init(struct ble_ll_aux_data **aux_data)
static void
ble_ll_scan_req_backoff(struct ble_ll_scan_sm *scansm, int success)
{
+ BLE_LL_ASSERT(scansm->backoff_count == 0);
+
scansm->scan_rsp_pending = 0;
if (success) {
scansm->scan_rsp_cons_fails = 0;
@@ -2467,7 +2469,10 @@ ble_ll_sca... |
Fix man paths construction | @@ -237,7 +237,7 @@ const mandeps = {b, name, mt
n = leaf(b.deps, p)
match std.strfind(pg, ".")
| `std.None: std.fatal("manpage {} missing section\n", pg)
- | `std.Some i: r = std.pathcat(config.Manpath, pg[i + 1:])
+ | `std.Some i: r = std.strcat(config.Manpath, pg[i + 1:])
;;
n.instdir = r
n.instmod = 0o644
|
fix unsafe cast of potentially packed enum | @@ -253,11 +253,13 @@ int ieee802154_get_key_security_level(unsigned index, security_level_t *level) {
if (!level) return RETURNCODE_EINVAL;
syscall_return_t com = command(RADIO_DRIVER, COMMAND_GET_KEY_LEVEL, (unsigned int) index, 0);
- int ret = tock_command_return_u32_to_returncode(com, (uint32_t*) level);
+ int stor... |
Add double click checkbox state | @@ -1316,6 +1316,7 @@ INT_PTR CALLBACK PhpOptionsGeneralDlgProc(
switch (header->code)
{
case NM_CLICK:
+ case NM_DBLCLK:
{
LPNMITEMACTIVATE itemActivate = (LPNMITEMACTIVATE)header;
LVHITTESTINFO lvHitInfo;
|
fix(bluetooth): Configs for non-splits. | @@ -128,6 +128,10 @@ endif
endchoice
+endif
+
+endif
+
if ZMK_BLE && (!ZMK_SPLIT_BLE || ZMK_SPLIT_BLE_ROLE_CENTRAL)
config BT_MAX_CONN
@@ -138,10 +142,6 @@ config BT_MAX_PAIRED
endif
-endif
-
-endif
-
endmenu
config ZMK_KSCAN_MOCK_DRIVER
|
hv:Replace dynamic memory allocation for apic access address
Replace pointer with static memory for apicv_apic_access_addr
Acked-by: Eddie Dong | @@ -82,7 +82,7 @@ vlapic_dump_isr(__unused struct acrn_vlapic *vlapic, __unused char *msg) {}
#endif
/*APIC-v APIC-access address */
-static void *apicv_apic_access_addr;
+static uint8_t apicv_apic_access_addr[CPU_PAGE_SIZE] __aligned(CPU_PAGE_SIZE);
static int
apicv_set_intr_ready(struct acrn_vlapic *vlapic, uint32_t ... |
Add thread PendingIrp sorting | @@ -615,6 +615,12 @@ BEGIN_SORT_FUNCTION(TokenState)
}
END_SORT_FUNCTION
+BEGIN_SORT_FUNCTION(PendingIrp)
+{
+ sortResult = ucharcmp(threadItem1->PendingIrp, threadItem2->PendingIrp);
+}
+END_SORT_FUNCTION
+
BOOLEAN NTAPI PhpThreadTreeNewCallback(
_In_ HWND hwnd,
_In_ PH_TREENEW_MESSAGE Message,
@@ -667,6 +673,7 @@ BOO... |
build BUGFIX config header installation | @@ -306,9 +306,14 @@ find_package(PCRE2 10.21 REQUIRED)
include_directories(${PCRE2_INCLUDE_DIRS})
target_link_libraries(yang ${PCRE2_LIBRARIES})
-# install files
+# generated header list
+foreach(h IN LISTS gen_headers)
+ list(APPEND g_headers ${PROJECT_BINARY_DIR}/${h})
+endforeach()
+
+# install all library files
in... |
SOVERSION bump to version 7.8.7 | @@ -72,7 +72,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_
# with backward compatible change and micro version is connected with any internal change of the library.
set(SYSREPO_MAJOR_SOVERSION 7)
set(SYSREPO_MINOR_SOVERSION 8)
-set(SYSREPO_MICRO_SOVERSION 6)
+set(SYSREPO_MICRO_SO... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.